matrix-design-system 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +95 -0
  3. package/dist/atoms/animation/motion-div/index.d.mts +2 -0
  4. package/dist/atoms/animation/motion-div/motion-div.d.mts +7 -0
  5. package/dist/atoms/animation/motion-div/motion-div.mjs +37 -0
  6. package/dist/atoms/animation/motion-div/use-motion-div-store.mjs +17 -0
  7. package/dist/atoms/buttons/button/button.d.mts +8 -0
  8. package/dist/atoms/buttons/button/button.mjs +12 -0
  9. package/dist/atoms/buttons/button/index.d.mts +2 -0
  10. package/dist/atoms/buttons/switch/index.d.mts +2 -0
  11. package/dist/atoms/buttons/switch/switch.d.mts +10 -0
  12. package/dist/atoms/buttons/switch/switch.mjs +40 -0
  13. package/dist/atoms/buttons/switch/use-switch-store.mjs +7 -0
  14. package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.d.mts +13 -0
  15. package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.mjs +30 -0
  16. package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/index.d.mts +2 -0
  17. package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.d.mts +14 -0
  18. package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.mjs +29 -0
  19. package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/index.d.mts +2 -0
  20. package/dist/atoms/chip/chip.d.mts +10 -0
  21. package/dist/atoms/chip/chip.mjs +10 -0
  22. package/dist/atoms/chip/index.d.mts +2 -0
  23. package/dist/atoms/effects/glassmorphism-background/glassmorphism-background.d.mts +8 -0
  24. package/dist/atoms/effects/glassmorphism-background/glassmorphism-background.mjs +33 -0
  25. package/dist/atoms/effects/glassmorphism-background/index.d.mts +2 -0
  26. package/dist/atoms/effects/glassmorphism-background/use-glassmorphism-background-store.mjs +17 -0
  27. package/dist/atoms/effects/image-glow/image-glow.d.mts +12 -0
  28. package/dist/atoms/effects/image-glow/image-glow.mjs +20 -0
  29. package/dist/atoms/effects/image-glow/index.d.mts +2 -0
  30. package/dist/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.d.mts +6 -0
  31. package/dist/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.mjs +22 -0
  32. package/dist/atoms/effects/image-shimmer-placeholder/index.d.mts +2 -0
  33. package/dist/atoms/effects/matrix-rain/matrix-rain/index.d.mts +2 -0
  34. package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/debounce.mjs +12 -0
  35. package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/matrix-2d-canvas.mjs +25 -0
  36. package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/use-matrix-2d-canvas-store.mjs +186 -0
  37. package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-rain.d.mts +5 -0
  38. package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-rain.mjs +68 -0
  39. package/dist/atoms/effects/matrix-rain/matrix-rain/use-matrix-rain-activity.mjs +40 -0
  40. package/dist/atoms/effects/matrix-rain/matrix-rain/use-matrix-rain-store.mjs +69 -0
  41. package/dist/atoms/effects/overlay/index.d.mts +2 -0
  42. package/dist/atoms/effects/overlay/overlay.d.mts +11 -0
  43. package/dist/atoms/effects/overlay/overlay.mjs +61 -0
  44. package/dist/atoms/effects/overlay/use-overlay-store.mjs +8 -0
  45. package/dist/atoms/effects/pills/index.d.mts +2 -0
  46. package/dist/atoms/effects/pills/pills.d.mts +10 -0
  47. package/dist/atoms/effects/pills/pills.mjs +121 -0
  48. package/dist/atoms/effects/pills/use-pills-store.mjs +17 -0
  49. package/dist/atoms/effects/plain-image/index.d.mts +2 -0
  50. package/dist/atoms/effects/plain-image/plain-image.d.mts +45 -0
  51. package/dist/atoms/effects/plain-image/plain-image.mjs +140 -0
  52. package/dist/atoms/effects/plain-image/use-plain-image-store.mjs +62 -0
  53. package/dist/atoms/icons/chat-icon/chat-icon.d.mts +4 -0
  54. package/dist/atoms/icons/chat-icon/chat-icon.mjs +13 -0
  55. package/dist/atoms/icons/copy-icon/copy-icon.d.mts +6 -0
  56. package/dist/atoms/icons/copy-icon/copy-icon.mjs +17 -0
  57. package/dist/atoms/icons/rounded-icon/index.d.mts +2 -0
  58. package/dist/atoms/icons/rounded-icon/rounded-icon.d.mts +8 -0
  59. package/dist/atoms/icons/rounded-icon/rounded-icon.mjs +8 -0
  60. package/dist/atoms/links/anchor-link/anchor-link.d.mts +31 -0
  61. package/dist/atoms/links/anchor-link/anchor-link.mjs +14 -0
  62. package/dist/atoms/links/anchor-link/index.d.mts +2 -0
  63. package/dist/atoms/links/external-link/external-link.d.mts +13 -0
  64. package/dist/atoms/links/external-link/external-link.mjs +29 -0
  65. package/dist/atoms/links/external-link/index.d.mts +2 -0
  66. package/dist/atoms/links/internal-link/index.d.mts +2 -0
  67. package/dist/atoms/links/internal-link/internal-link.d.mts +15 -0
  68. package/dist/atoms/links/internal-link/internal-link.mjs +12 -0
  69. package/dist/atoms/loader/loader/index.d.mts +2 -0
  70. package/dist/atoms/loader/loader/loader.d.mts +10 -0
  71. package/dist/atoms/loader/loader/loader.mjs +62 -0
  72. package/dist/atoms/typography/input-field/index.d.mts +2 -0
  73. package/dist/atoms/typography/input-field/input-field.d.mts +9 -0
  74. package/dist/atoms/typography/input-field/input-field.mjs +8 -0
  75. package/dist/atoms/typography/label/index.d.mts +2 -0
  76. package/dist/atoms/typography/label/label.d.mts +9 -0
  77. package/dist/atoms/typography/label/label.mjs +11 -0
  78. package/dist/atoms/typography/markdown/markdown-plugins.mjs +16 -0
  79. package/dist/atoms/typography/markdown/markdown.d.mts +7 -0
  80. package/dist/atoms/typography/markdown/markdown.mjs +23 -0
  81. package/dist/atoms/typography/markdown/use-markdown-store.mjs +24 -0
  82. package/dist/atoms/typography/terminal-blocks/index.d.mts +2 -0
  83. package/dist/atoms/typography/terminal-blocks/terminal-blocks.d.mts +13 -0
  84. package/dist/atoms/typography/terminal-blocks/terminal-blocks.mjs +42 -0
  85. package/dist/atoms/typography/textarea/index.d.mts +2 -0
  86. package/dist/atoms/typography/textarea/textarea.d.mts +9 -0
  87. package/dist/atoms/typography/textarea/textarea.mjs +8 -0
  88. package/dist/chart.d.mts +7 -0
  89. package/dist/chart.mjs +4 -0
  90. package/dist/command-palette.d.mts +6 -0
  91. package/dist/command-palette.mjs +5 -0
  92. package/dist/hooks/use-clipboard-available.d.mts +4 -0
  93. package/dist/hooks/use-clipboard-available.mjs +10 -0
  94. package/dist/hooks/use-device-capabilities.d.mts +10 -0
  95. package/dist/hooks/use-device-capabilities.mjs +30 -0
  96. package/dist/hooks/use-glassmorphism.d.mts +10 -0
  97. package/dist/hooks/use-glassmorphism.mjs +9 -0
  98. package/dist/hooks/use-in-view-list.d.mts +7 -0
  99. package/dist/hooks/use-in-view-list.mjs +63 -0
  100. package/dist/hooks/use-in-view.d.mts +9 -0
  101. package/dist/hooks/use-in-view.mjs +68 -0
  102. package/dist/hooks/use-is-ios.d.mts +4 -0
  103. package/dist/hooks/use-is-ios.mjs +7 -0
  104. package/dist/hooks/use-lock-body-scroll.d.mts +4 -0
  105. package/dist/hooks/use-lock-body-scroll.mjs +40 -0
  106. package/dist/hooks/use-matrix-settings-store.d.mts +5 -0
  107. package/dist/hooks/use-matrix-settings-store.mjs +15 -0
  108. package/dist/hooks/use-motion-store.d.mts +13 -0
  109. package/dist/hooks/use-motion-store.mjs +29 -0
  110. package/dist/hooks/use-os-modifier-key.d.mts +5 -0
  111. package/dist/hooks/use-os-modifier-key.mjs +15 -0
  112. package/dist/hooks/use-reading-progress.d.mts +8 -0
  113. package/dist/hooks/use-reading-progress.mjs +49 -0
  114. package/dist/hooks/use-reduced-motions.d.mts +4 -0
  115. package/dist/hooks/use-reduced-motions.mjs +10 -0
  116. package/dist/hooks/use-scroll-direction.d.mts +8 -0
  117. package/dist/hooks/use-scroll-direction.mjs +43 -0
  118. package/dist/hooks/use-typewriter.d.mts +15 -0
  119. package/dist/hooks/use-typewriter.mjs +89 -0
  120. package/dist/hooks/use-webgpu-supported.d.mts +4 -0
  121. package/dist/hooks/use-webgpu-supported.mjs +16 -0
  122. package/dist/index.d.mts +153 -0
  123. package/dist/index.mjs +88 -0
  124. package/dist/markdown.d.mts +2 -0
  125. package/dist/markdown.mjs +2 -0
  126. package/dist/molecules/accordion/accordion/accordion.d.mts +12 -0
  127. package/dist/molecules/accordion/accordion/accordion.mjs +130 -0
  128. package/dist/molecules/accordion/accordion/index.d.mts +2 -0
  129. package/dist/molecules/accordion/accordion/use-accordion-store.mjs +55 -0
  130. package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.d.mts +21 -0
  131. package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.mjs +186 -0
  132. package/dist/molecules/breadcrumbs/breadcrumb/index.d.mts +2 -0
  133. package/dist/molecules/breadcrumbs/breadcrumb/use-breadcrumb-store.mjs +29 -0
  134. package/dist/molecules/buttons/pagination-navigation/index.d.mts +2 -0
  135. package/dist/molecules/buttons/pagination-navigation/pagination-navigation.d.mts +11 -0
  136. package/dist/molecules/buttons/pagination-navigation/pagination-navigation.mjs +17 -0
  137. package/dist/molecules/buttons/pills-buttons/index.d.mts +2 -0
  138. package/dist/molecules/buttons/pills-buttons/pills-buttons.d.mts +10 -0
  139. package/dist/molecules/buttons/pills-buttons/pills-buttons.mjs +55 -0
  140. package/dist/molecules/buttons/segmented-control/segmented-control.d.mts +13 -0
  141. package/dist/molecules/buttons/segmented-control/segmented-control.mjs +46 -0
  142. package/dist/molecules/buttons/segmented-control/use-segmented-control-store.mjs +8 -0
  143. package/dist/molecules/buttons/social-contact/index.d.mts +2 -0
  144. package/dist/molecules/buttons/social-contact/social-contact.d.mts +10 -0
  145. package/dist/molecules/buttons/social-contact/social-contact.mjs +13 -0
  146. package/dist/molecules/buttons/tag/index.d.mts +2 -0
  147. package/dist/molecules/buttons/tag/tag.d.mts +17 -0
  148. package/dist/molecules/buttons/tag/tag.mjs +20 -0
  149. package/dist/molecules/buttons/terminal-button/index.d.mts +2 -0
  150. package/dist/molecules/buttons/terminal-button/terminal-button.d.mts +15 -0
  151. package/dist/molecules/buttons/terminal-button/terminal-button.mjs +38 -0
  152. package/dist/molecules/chart/chart-panel/chart-panel.d.mts +9 -0
  153. package/dist/molecules/chart/chart-panel/chart-panel.mjs +12 -0
  154. package/dist/molecules/chart/chart-panel/index.d.mts +2 -0
  155. package/dist/molecules/chart/chart-tooltip/chart-tooltip.d.mts +8 -0
  156. package/dist/molecules/chart/chart-tooltip/chart-tooltip.mjs +18 -0
  157. package/dist/molecules/chart/chart-tooltip/index.d.mts +2 -0
  158. package/dist/molecules/chart/donut-chart/donut-chart.d.mts +15 -0
  159. package/dist/molecules/chart/donut-chart/donut-chart.mjs +142 -0
  160. package/dist/molecules/chart/donut-chart/index.d.mts +2 -0
  161. package/dist/molecules/containers/content-container/content-container.d.mts +5 -0
  162. package/dist/molecules/containers/content-container/content-container.mjs +8 -0
  163. package/dist/molecules/containers/content-container/index.d.mts +2 -0
  164. package/dist/molecules/controls/control-slider/control-slider.d.mts +14 -0
  165. package/dist/molecules/controls/control-slider/control-slider.mjs +76 -0
  166. package/dist/molecules/controls/control-slider/index.d.mts +2 -0
  167. package/dist/molecules/controls/control-slider/use-control-slider-store.mjs +10 -0
  168. package/dist/molecules/effects/matrix-background/index.d.mts +2 -0
  169. package/dist/molecules/effects/matrix-background/matrix-background.d.mts +8 -0
  170. package/dist/molecules/effects/matrix-background/matrix-background.mjs +15 -0
  171. package/dist/molecules/effects/matrix-header-background/index.d.mts +2 -0
  172. package/dist/molecules/effects/matrix-header-background/matrix-header-background.d.mts +8 -0
  173. package/dist/molecules/effects/matrix-header-background/matrix-header-background.mjs +14 -0
  174. package/dist/molecules/effects/matrix-terminal/index.d.mts +2 -0
  175. package/dist/molecules/effects/matrix-terminal/matrix-terminal.d.mts +15 -0
  176. package/dist/molecules/effects/matrix-terminal/matrix-terminal.mjs +101 -0
  177. package/dist/molecules/effects/matrix-terminal/use-matrix-terminal-store.mjs +59 -0
  178. package/dist/molecules/form/filter-input/filter-input.d.mts +10 -0
  179. package/dist/molecules/form/filter-input/filter-input.mjs +35 -0
  180. package/dist/molecules/form/filter-input/index.d.mts +2 -0
  181. package/dist/molecules/form/form-error-summary/form-error-summary.d.mts +10 -0
  182. package/dist/molecules/form/form-error-summary/form-error-summary.mjs +71 -0
  183. package/dist/molecules/form/form-error-summary/index.d.mts +2 -0
  184. package/dist/molecules/form/form-field/form-field.d.mts +10 -0
  185. package/dist/molecules/form/form-field/form-field.mjs +60 -0
  186. package/dist/molecules/form/form-field/index.d.mts +2 -0
  187. package/dist/molecules/form/form-success-message/form-success-message.d.mts +8 -0
  188. package/dist/molecules/form/form-success-message/form-success-message.mjs +21 -0
  189. package/dist/molecules/form/form-success-message/index.d.mts +2 -0
  190. package/dist/molecules/form/form-textarea/form-textarea.d.mts +10 -0
  191. package/dist/molecules/form/form-textarea/form-textarea.mjs +60 -0
  192. package/dist/molecules/form/form-textarea/index.d.mts +2 -0
  193. package/dist/molecules/lightbox-image/index.d.mts +2 -0
  194. package/dist/molecules/lightbox-image/lightbox-image.d.mts +6 -0
  195. package/dist/molecules/lightbox-image/lightbox-image.mjs +49 -0
  196. package/dist/molecules/lightbox-image/use-lightbox-image-store.mjs +29 -0
  197. package/dist/molecules/links/pills-links/index.d.mts +2 -0
  198. package/dist/molecules/links/pills-links/pills-links.d.mts +13 -0
  199. package/dist/molecules/links/pills-links/pills-links.mjs +60 -0
  200. package/dist/molecules/menu/close/close.d.mts +8 -0
  201. package/dist/molecules/menu/close/close.mjs +9 -0
  202. package/dist/molecules/menu/close/index.d.mts +2 -0
  203. package/dist/molecules/menu/dropdown-menu/dropdown-menu.d.mts +25 -0
  204. package/dist/molecules/menu/dropdown-menu/dropdown-menu.mjs +143 -0
  205. package/dist/molecules/menu/dropdown-menu/index.d.mts +2 -0
  206. package/dist/molecules/menu/dropdown-menu/use-dropdown-menu-store.mjs +108 -0
  207. package/dist/molecules/menu/hamburger-menu/hamburger-menu.d.mts +8 -0
  208. package/dist/molecules/menu/hamburger-menu/hamburger-menu.mjs +9 -0
  209. package/dist/molecules/menu/hamburger-menu/index.d.mts +2 -0
  210. package/dist/molecules/menu/menu-item/index.d.mts +2 -0
  211. package/dist/molecules/menu/menu-item/menu-item.d.mts +16 -0
  212. package/dist/molecules/menu/menu-item/menu-item.mjs +65 -0
  213. package/dist/molecules/menu/menu-item/use-menu-item-store.mjs +10 -0
  214. package/dist/molecules/stat-card/index.d.mts +2 -0
  215. package/dist/molecules/stat-card/stat-card.d.mts +10 -0
  216. package/dist/molecules/stat-card/stat-card.mjs +21 -0
  217. package/dist/molecules/terminal-list-item/index.d.mts +2 -0
  218. package/dist/molecules/terminal-list-item/terminal-list-item.d.mts +9 -0
  219. package/dist/molecules/terminal-list-item/terminal-list-item.mjs +13 -0
  220. package/dist/molecules/terminal-progress-bar/index.d.mts +2 -0
  221. package/dist/molecules/terminal-progress-bar/terminal-progress-bar.d.mts +11 -0
  222. package/dist/molecules/terminal-progress-bar/terminal-progress-bar.mjs +20 -0
  223. package/dist/molecules/typography/page-title/index.d.mts +2 -0
  224. package/dist/molecules/typography/page-title/page-title.d.mts +5 -0
  225. package/dist/molecules/typography/page-title/page-title.mjs +8 -0
  226. package/dist/molecules/typography/paragraph-title-with-icon/index.d.mts +2 -0
  227. package/dist/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.d.mts +8 -0
  228. package/dist/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.mjs +13 -0
  229. package/dist/molecules/typography/section-heading/index.d.mts +2 -0
  230. package/dist/molecules/typography/section-heading/section-heading.d.mts +9 -0
  231. package/dist/molecules/typography/section-heading/section-heading.mjs +17 -0
  232. package/dist/molecules/video/self-hosted-video/index.d.mts +2 -0
  233. package/dist/molecules/video/self-hosted-video/self-hosted-video.d.mts +17 -0
  234. package/dist/molecules/video/self-hosted-video/self-hosted-video.mjs +39 -0
  235. package/dist/molecules/video/youtube/index.d.mts +2 -0
  236. package/dist/molecules/video/youtube/youtube.d.mts +9 -0
  237. package/dist/molecules/video/youtube/youtube.mjs +12 -0
  238. package/dist/organism/command-palette/command-palette/command-palette.d.mts +12 -0
  239. package/dist/organism/command-palette/command-palette/command-palette.mjs +148 -0
  240. package/dist/organism/command-palette/command-palette/index.d.mts +2 -0
  241. package/dist/organism/command-palette/command-palette/use-command-palette-store.mjs +121 -0
  242. package/dist/organism/command-palette/command-palette-group/command-palette-group.d.mts +9 -0
  243. package/dist/organism/command-palette/command-palette-group/command-palette-group.mjs +24 -0
  244. package/dist/organism/command-palette/command-palette-group/index.d.mts +2 -0
  245. package/dist/organism/command-palette/command-palette-item/command-palette-item.d.mts +11 -0
  246. package/dist/organism/command-palette/command-palette-item/command-palette-item.mjs +29 -0
  247. package/dist/organism/command-palette/command-palette-item/index.d.mts +2 -0
  248. package/dist/organism/command-palette/command-palette-item/use-command-palette-item-store.mjs +30 -0
  249. package/dist/organism/command-palette/index.d.mts +9 -0
  250. package/dist/organism/command-palette/toggle-motion-item/index.d.mts +2 -0
  251. package/dist/organism/command-palette/toggle-motion-item/toggle-motion-item.d.mts +8 -0
  252. package/dist/organism/command-palette/toggle-motion-item/toggle-motion-item.mjs +63 -0
  253. package/dist/organism/command-palette/toggle-motion-item/use-toggle-motion-item-store.mjs +45 -0
  254. package/dist/organism/cookie-consent-banner/cookie-consent-banner.d.mts +9 -0
  255. package/dist/organism/cookie-consent-banner/cookie-consent-banner.mjs +71 -0
  256. package/dist/organism/cookie-consent-banner/use-cookie-consent-banner-store.mjs +10 -0
  257. package/dist/organism/footer/footer.d.mts +26 -0
  258. package/dist/organism/footer/footer.mjs +193 -0
  259. package/dist/organism/footer/index.d.mts +3 -0
  260. package/dist/organism/footer/use-footer-store.d.mts +22 -0
  261. package/dist/organism/footer/use-footer-store.mjs +57 -0
  262. package/dist/organism/header/brand-header/brand-header.d.mts +14 -0
  263. package/dist/organism/header/brand-header/brand-header.mjs +132 -0
  264. package/dist/organism/header/brand-header/index.d.mts +2 -0
  265. package/dist/organism/image-carousel/fullscreen-modal/fullscreen-modal.mjs +148 -0
  266. package/dist/organism/image-carousel/fullscreen-modal/use-fullscreen-modal-store.mjs +129 -0
  267. package/dist/organism/image-carousel/image-carousel.d.mts +14 -0
  268. package/dist/organism/image-carousel/image-carousel.mjs +225 -0
  269. package/dist/organism/image-carousel/index.d.mts +2 -0
  270. package/dist/organism/image-carousel/navigation-buttons/navigation-buttons.mjs +22 -0
  271. package/dist/organism/image-carousel/navigation-buttons/use-navigation-buttons-store.mjs +18 -0
  272. package/dist/organism/image-carousel/page-indicators/page-indicator-button/page-indicator-button.mjs +14 -0
  273. package/dist/organism/image-carousel/page-indicators/page-indicator-button/use-page-indicator-button-store.mjs +11 -0
  274. package/dist/organism/image-carousel/page-indicators/page-indicators.mjs +20 -0
  275. package/dist/organism/image-carousel/use-image-carousel-store.mjs +88 -0
  276. package/dist/organism/lightbox/index.d.mts +2 -0
  277. package/dist/organism/lightbox/lightbox.d.mts +5 -0
  278. package/dist/organism/lightbox/lightbox.mjs +100 -0
  279. package/dist/organism/lightbox/use-lightbox-store.mjs +120 -0
  280. package/dist/organism/loading-bar/loading-bar.d.mts +7 -0
  281. package/dist/organism/loading-bar/loading-bar.mjs +48 -0
  282. package/dist/organism/loading-bar/use-loading-bar-store.mjs +52 -0
  283. package/dist/organism/menu/index.d.mts +3 -0
  284. package/dist/organism/menu/menu.d.mts +33 -0
  285. package/dist/organism/menu/menu.mjs +396 -0
  286. package/dist/organism/menu/use-menu-store.d.mts +22 -0
  287. package/dist/organism/menu/use-menu-store.mjs +265 -0
  288. package/dist/organism/profile-hero/index.d.mts +2 -0
  289. package/dist/organism/profile-hero/profile-hero.d.mts +15 -0
  290. package/dist/organism/profile-hero/profile-hero.mjs +72 -0
  291. package/dist/organism/profile-photo/index.d.mts +2 -0
  292. package/dist/organism/profile-photo/profile-photo.d.mts +12 -0
  293. package/dist/organism/profile-photo/profile-photo.mjs +17 -0
  294. package/dist/organism/reading-content-progress-bar/index.d.mts +2 -0
  295. package/dist/organism/reading-content-progress-bar/reading-content-progress-bar.d.mts +8 -0
  296. package/dist/organism/reading-content-progress-bar/reading-content-progress-bar.mjs +76 -0
  297. package/dist/organism/reading-content-progress-bar/use-reading-content-progress-bar-store.mjs +29 -0
  298. package/dist/organism/social-contacts/index.d.mts +2 -0
  299. package/dist/organism/social-contacts/social-contacts.d.mts +29 -0
  300. package/dist/organism/social-contacts/social-contacts.mjs +78 -0
  301. package/dist/state/command-palette/command-palette-context.d.mts +9 -0
  302. package/dist/state/command-palette/command-palette-context.mjs +10 -0
  303. package/dist/state/command-palette/command-palette-events.d.mts +11 -0
  304. package/dist/state/command-palette/command-palette-events.mjs +15 -0
  305. package/dist/state/command-palette/command-palette-trigger.d.mts +8 -0
  306. package/dist/state/lightbox/lightbox-events.d.mts +9 -0
  307. package/dist/state/lightbox/lightbox-events.mjs +7 -0
  308. package/dist/state/matrix-rain/matrix-settings.d.mts +37 -0
  309. package/dist/state/matrix-rain/matrix-settings.mjs +122 -0
  310. package/dist/state/motion/motion.d.mts +6 -0
  311. package/dist/state/motion/motion.mjs +17 -0
  312. package/package.json +160 -0
  313. package/src/styles/base.css +130 -0
  314. package/src/styles/components.css +57 -0
  315. package/src/styles/index.css +23 -0
  316. package/src/styles/pills.css +85 -0
  317. package/src/styles/theme.css +254 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fabrizio Duroni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # matrix-design-system
2
+
3
+ A Matrix-inspired React design system: green on near-black, Open Sans for prose, Courier Prime for
4
+ anything terminal-flavoured. Every component here is a real component from
5
+ [fabrizioduroni.it](https://www.fabrizioduroni.it).
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install matrix-design-system
11
+ ```
12
+
13
+ `react`, `react-dom` and `framer-motion` are peer dependencies — `framer-motion` because its
14
+ `AnimatePresence` context has to be shared with your own animated components, which a second copy
15
+ would break.
16
+
17
+ Everything in the root barrel works with just those installed. Three groups need heavier libraries,
18
+ so they live behind their own entry points and you install a peer only if you import one:
19
+
20
+ | Import from | Install | For |
21
+ |---|---|---|
22
+ | `matrix-design-system/chart` | `recharts` | `ChartPanel`, `ChartTooltip`, `DonutChart` |
23
+ | `matrix-design-system/markdown` | `react-markdown`, `unified`, the remark/rehype plugins | `Markdown` |
24
+ | `matrix-design-system/command-palette` | `cmdk` | `CommandPalette` and its items |
25
+
26
+ Nothing else is optional: the rain effect is part of the design system's identity — `BrandHeader`
27
+ and the matrix backgrounds all render it — so `matrix-rain-webgpu` is a plain dependency and comes
28
+ along automatically.
29
+
30
+ ## Use
31
+
32
+ ```tsx
33
+ import { Accordion, Chip, SectionHeading, StatCard } from "matrix-design-system";
34
+ import { DonutChart } from "matrix-design-system/chart";
35
+ import "matrix-design-system/styles.css";
36
+ ```
37
+
38
+ The stylesheet must be imported after Tailwind:
39
+
40
+ ```css
41
+ @import "tailwindcss";
42
+ @import "matrix-design-system/styles.css";
43
+ ```
44
+
45
+ **The page surface must be dark.** The stylesheet sets `html body` to `#001100` on `#E8FFE8`; most
46
+ components are near-invisible on white.
47
+
48
+ ## Styling
49
+
50
+ Style your own layout with Tailwind utilities — they resolve against this theme, so use its names
51
+ rather than stock Tailwind colours:
52
+
53
+ | Family | Names |
54
+ |---|---|
55
+ | Brand | `primary` (#00FF41), `primary-dark`, `secondary`, `accent` (#39FF14) |
56
+ | Surfaces | `general-background` (#001100), `general-background-light`, `black`, `white` |
57
+ | Text | `primary-text` (#E8FFE8), `secondary-text`, `text-above-primary` |
58
+ | Fonts | `font-sans` → Open Sans · `font-mono` → Courier Prime |
59
+
60
+ **The breakpoint scale is overridden**: `xs` 576 · `sm` 768 · `md` 992 · `lg` 1200 · `xl` 1600 ·
61
+ `2xl` 2000 (px). So `md:` starts at 992px, not 768px — the most common way a layout built with this
62
+ theme behaves differently from expected.
63
+
64
+ Composed classes worth reaching for: `.glassmorphism` (and `-lite`, `-no-scale`), `.glow-border`,
65
+ `.glow-container`, `.pill`, `.call-to-action`, `.container-fixed`.
66
+
67
+ Fonts are not bundled: load Open Sans and Courier Prime yourself.
68
+
69
+ ## Framework-agnostic by design
70
+
71
+ The package imports nothing from any framework. Where a component needs framework behaviour it takes
72
+ it as a prop, with a working default:
73
+
74
+ ```tsx
75
+ import NextLink from "next/link";
76
+ import NextImage from "next/image";
77
+
78
+ <InternalLink to="/blog" linkComponent={NextLink}>Blog</InternalLink>
79
+ <ImageGlow src={photo} alt="" imageComponent={NextImage} />
80
+ <Menu currentPath={usePathname()} navHrefs={...} linkComponent={NextLink} />
81
+ ```
82
+
83
+ Without them you get a real `<a>` and a real `<img>` — `PlainImage` reproduces `next/image`'s
84
+ `fill`, placeholder and lazy-loading behaviour — so the components work anywhere, just without
85
+ client-side routing or image optimisation.
86
+
87
+ ## No provider required
88
+
89
+ There is no theme or context provider to wrap anything in. Components read their styling from CSS
90
+ custom properties, and the two global preferences (motion, glassmorphism variant) come from
91
+ `localStorage` with sensible defaults.
92
+
93
+ ## License
94
+
95
+ MIT © Fabrizio Duroni
@@ -0,0 +1,2 @@
1
+ import { MotionDiv } from "./motion-div.mjs";
2
+ export { MotionDiv };
@@ -0,0 +1,7 @@
1
+ import { HTMLMotionProps } from "framer-motion";
2
+ import { FC } from "react";
3
+ //#region src/atoms/animation/motion-div/motion-div.d.ts
4
+ type MotionDivProps = HTMLMotionProps<"div">;
5
+ declare const MotionDiv: FC<MotionDivProps>;
6
+ //#endregion
7
+ export { MotionDiv };
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { useMotionDivStore } from "./use-motion-div-store.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ import { motion } from "framer-motion";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/atoms/animation/motion-div/motion-div.tsx
7
+ const MotionDiv = (props) => {
8
+ const $ = c(6);
9
+ const { state } = useMotionDivStore();
10
+ const { motionEnabled } = state;
11
+ if (!motionEnabled) {
12
+ let divProps;
13
+ if ($[0] !== props) {
14
+ const { animate, initial, transition, variants, whileHover, whileTap, whileFocus, whileInView, whileDrag, exit, layout, layoutId, drag, dragConstraints, dragElastic, dragMomentum, dragTransition, dragSnapToOrigin, dragControls, dragListener, dragPropagation, onDrag, onDragStart, onDragEnd, onDirectionLock, onAnimationStart, onAnimationComplete, onUpdate, onViewportEnter, onViewportLeave, ...t0 } = props;
15
+ divProps = t0;
16
+ $[0] = props;
17
+ $[1] = divProps;
18
+ } else divProps = $[1];
19
+ const t0 = divProps;
20
+ let t1;
21
+ if ($[2] !== t0) {
22
+ t1 = /* @__PURE__ */ jsx("div", { ...t0 });
23
+ $[2] = t0;
24
+ $[3] = t1;
25
+ } else t1 = $[3];
26
+ return t1;
27
+ }
28
+ let t0;
29
+ if ($[4] !== props) {
30
+ t0 = /* @__PURE__ */ jsx(motion.div, { ...props });
31
+ $[4] = props;
32
+ $[5] = t0;
33
+ } else t0 = $[5];
34
+ return t0;
35
+ };
36
+ //#endregion
37
+ export { MotionDiv };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { useMotionStore } from "../../../hooks/use-motion-store.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ //#region src/atoms/animation/motion-div/use-motion-div-store.ts
5
+ const useMotionDivStore = () => {
6
+ const $ = c(2);
7
+ const motionEnabled = useMotionStore();
8
+ let t0;
9
+ if ($[0] !== motionEnabled) {
10
+ t0 = { state: { motionEnabled } };
11
+ $[0] = motionEnabled;
12
+ $[1] = t0;
13
+ } else t0 = $[1];
14
+ return t0;
15
+ };
16
+ //#endregion
17
+ export { useMotionDivStore };
@@ -0,0 +1,8 @@
1
+ import React, { FC, PropsWithChildren } from "react";
2
+ //#region src/atoms/buttons/button/button.d.ts
3
+ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & PropsWithChildren & {
4
+ className?: string;
5
+ };
6
+ declare const Button: FC<ButtonProps>;
7
+ //#endregion
8
+ export { Button };
@@ -0,0 +1,12 @@
1
+ import "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/atoms/buttons/button/button.tsx
4
+ const Button = ({ className, children, ...props }) => {
5
+ return /* @__PURE__ */ jsx("button", {
6
+ className: `glow-container bg-transparent p-3 text-primary-text cursor-pointer text-left flex items-center gap-3${className ? ` ${className}` : ""}`,
7
+ ...props,
8
+ children
9
+ });
10
+ };
11
+ //#endregion
12
+ export { Button };
@@ -0,0 +1,2 @@
1
+ import { Button } from "./button.mjs";
2
+ export { Button };
@@ -0,0 +1,2 @@
1
+ import { Switch } from "./switch.mjs";
2
+ export { Switch };
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ //#region src/atoms/buttons/switch/switch.d.ts
3
+ interface SwitchProps {
4
+ checked: boolean;
5
+ onChange: (v: boolean) => void;
6
+ label?: string;
7
+ }
8
+ declare const Switch: FC<SwitchProps>;
9
+ //#endregion
10
+ export { Switch };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { useSwitchStore } from "./use-switch-store.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/atoms/buttons/switch/switch.tsx
6
+ const Switch = (t0) => {
7
+ const $ = c(8);
8
+ const { checked, onChange, label } = t0;
9
+ const { effects } = useSwitchStore(checked, onChange);
10
+ const { onToggle } = effects;
11
+ const t1 = `relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border transition-colors duration-150 cursor-pointer ${checked ? "border-accent bg-accent/20 shadow-[0_0_8px_var(--color-accent-alpha-50)]" : "border-accent/30 bg-transparent"}`;
12
+ const t2 = `pointer-events-none inline-block h-3.5 w-3.5 rounded-full transition-transform duration-150 ${checked ? "translate-x-[18px] bg-accent shadow-[0_0_6px_var(--color-accent)]" : "translate-x-[3px] bg-accent/40"}`;
13
+ let t3;
14
+ if ($[0] !== t2) {
15
+ t3 = /* @__PURE__ */ jsx("span", { className: t2 });
16
+ $[0] = t2;
17
+ $[1] = t3;
18
+ } else t3 = $[1];
19
+ let t4;
20
+ if ($[2] !== checked || $[3] !== label || $[4] !== onToggle || $[5] !== t1 || $[6] !== t3) {
21
+ t4 = /* @__PURE__ */ jsx("button", {
22
+ type: "button",
23
+ role: "switch",
24
+ "aria-checked": checked,
25
+ "aria-label": label,
26
+ onClick: onToggle,
27
+ className: t1,
28
+ children: t3
29
+ });
30
+ $[2] = checked;
31
+ $[3] = label;
32
+ $[4] = onToggle;
33
+ $[5] = t1;
34
+ $[6] = t3;
35
+ $[7] = t4;
36
+ } else t4 = $[7];
37
+ return t4;
38
+ };
39
+ //#endregion
40
+ export { Switch };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ //#region src/atoms/buttons/switch/use-switch-store.ts
3
+ const useSwitchStore = (checked, onChange) => {
4
+ return { effects: { onToggle: () => onChange(!checked) } };
5
+ };
6
+ //#endregion
7
+ export { useSwitchStore };
@@ -0,0 +1,13 @@
1
+ import { FC, ReactNode } from "react";
2
+ //#region src/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.d.ts
3
+ type CallToActionExternalWithTrackingProps = {
4
+ href: string;
5
+ className?: string;
6
+ target?: string;
7
+ rel?: string;
8
+ children?: ReactNode;
9
+ onClick?: () => void;
10
+ };
11
+ declare const CallToActionExternalWithTracking: FC<CallToActionExternalWithTrackingProps>;
12
+ //#endregion
13
+ export { CallToActionExternalWithTracking };
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.tsx
5
+ const CallToActionExternalWithTracking = (t0) => {
6
+ const $ = c(7);
7
+ const { children, className, href, onClick, target, rel } = t0;
8
+ const t1 = `call-to-action${className ? ` ${className}` : ""}`;
9
+ let t2;
10
+ if ($[0] !== children || $[1] !== href || $[2] !== onClick || $[3] !== rel || $[4] !== t1 || $[5] !== target) {
11
+ t2 = /* @__PURE__ */ jsx("a", {
12
+ className: t1,
13
+ href,
14
+ onClick,
15
+ target,
16
+ rel,
17
+ children
18
+ });
19
+ $[0] = children;
20
+ $[1] = href;
21
+ $[2] = onClick;
22
+ $[3] = rel;
23
+ $[4] = t1;
24
+ $[5] = target;
25
+ $[6] = t2;
26
+ } else t2 = $[6];
27
+ return t2;
28
+ };
29
+ //#endregion
30
+ export { CallToActionExternalWithTracking };
@@ -0,0 +1,2 @@
1
+ import { CallToActionExternalWithTracking } from "./call-to-action-external-with-tracking.mjs";
2
+ export { CallToActionExternalWithTracking };
@@ -0,0 +1,14 @@
1
+ import { LinkComponent } from "../../links/anchor-link/anchor-link.mjs";
2
+ import "../../links/anchor-link/index.mjs";
3
+ import { FC, ReactNode } from "react";
4
+ //#region src/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.d.ts
5
+ type CallToActionInternalWithTrackingProps = {
6
+ to: string;
7
+ linkComponent?: LinkComponent;
8
+ className?: string;
9
+ children?: ReactNode;
10
+ onClick?: () => void;
11
+ };
12
+ declare const CallToActionInternalWithTracking: FC<CallToActionInternalWithTrackingProps>;
13
+ //#endregion
14
+ export { CallToActionInternalWithTracking, CallToActionInternalWithTrackingProps };
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { AnchorLink } from "../../links/anchor-link/anchor-link.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.tsx
6
+ const CallToActionInternalWithTracking = (t0) => {
7
+ const $ = c(6);
8
+ const { children, className, to, onClick, linkComponent: t1 } = t0;
9
+ const Link = t1 === void 0 ? AnchorLink : t1;
10
+ const t2 = `call-to-action${className ? ` ${className}` : ""}`;
11
+ let t3;
12
+ if ($[0] !== Link || $[1] !== children || $[2] !== onClick || $[3] !== t2 || $[4] !== to) {
13
+ t3 = /* @__PURE__ */ jsx(Link, {
14
+ className: t2,
15
+ href: to,
16
+ onClick,
17
+ children
18
+ });
19
+ $[0] = Link;
20
+ $[1] = children;
21
+ $[2] = onClick;
22
+ $[3] = t2;
23
+ $[4] = to;
24
+ $[5] = t3;
25
+ } else t3 = $[5];
26
+ return t3;
27
+ };
28
+ //#endregion
29
+ export { CallToActionInternalWithTracking };
@@ -0,0 +1,2 @@
1
+ import { CallToActionInternalWithTracking, CallToActionInternalWithTrackingProps } from "./call-to-action-internal-with-tracking.mjs";
2
+ export { CallToActionInternalWithTracking, type CallToActionInternalWithTrackingProps };
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from "react";
2
+ //#region src/atoms/chip/chip.d.ts
3
+ interface ChipProps {
4
+ children: ReactNode;
5
+ big?: boolean;
6
+ className?: string;
7
+ }
8
+ declare const Chip: FC<ChipProps>;
9
+ //#endregion
10
+ export { Chip, ChipProps };
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ //#region src/atoms/chip/chip.tsx
3
+ const Chip = ({ children, big = false, className }) => {
4
+ return /* @__PURE__ */ jsx("span", {
5
+ className: `glow-container text-shadow-sm p-2 block text-primary-text ${big ? "text-2xl" : "text-sm"} leading-none${className ? ` ${className}` : ""}`,
6
+ children
7
+ });
8
+ };
9
+ //#endregion
10
+ export { Chip };
@@ -0,0 +1,2 @@
1
+ import { Chip, ChipProps } from "./chip.mjs";
2
+ export { Chip, type ChipProps };
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ //#region src/atoms/effects/glassmorphism-background/glassmorphism-background.d.ts
3
+ interface GlassmorphismBackgroundProps {
4
+ className?: string;
5
+ }
6
+ declare const GlassmorphismBackground: FC<PropsWithChildren<GlassmorphismBackgroundProps>>;
7
+ //#endregion
8
+ export { GlassmorphismBackground };
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { MotionDiv } from "../../animation/motion-div/motion-div.mjs";
3
+ import { useGlassmorphismBackgroundStore } from "./use-glassmorphism-background-store.mjs";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/atoms/effects/glassmorphism-background/glassmorphism-background.tsx
7
+ const containerVariants = {
8
+ hidden: { opacity: 0 },
9
+ visible: { opacity: 1 }
10
+ };
11
+ const GlassmorphismBackground = (t0) => {
12
+ const $ = c(3);
13
+ const { className, children } = t0;
14
+ const { state } = useGlassmorphismBackgroundStore();
15
+ const { glassmorphismClass } = state;
16
+ const t1 = `${glassmorphismClass} relative p-5 md:p-9 ${className}`;
17
+ let t2;
18
+ if ($[0] !== children || $[1] !== t1) {
19
+ t2 = /* @__PURE__ */ jsx(MotionDiv, {
20
+ className: t1,
21
+ variants: containerVariants,
22
+ initial: "hidden",
23
+ animate: "visible",
24
+ children
25
+ });
26
+ $[0] = children;
27
+ $[1] = t1;
28
+ $[2] = t2;
29
+ } else t2 = $[2];
30
+ return t2;
31
+ };
32
+ //#endregion
33
+ export { GlassmorphismBackground };
@@ -0,0 +1,2 @@
1
+ import { GlassmorphismBackground } from "./glassmorphism-background.mjs";
2
+ export { GlassmorphismBackground };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { useGlassmorphism } from "../../../hooks/use-glassmorphism.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ //#region src/atoms/effects/glassmorphism-background/use-glassmorphism-background-store.ts
5
+ const useGlassmorphismBackgroundStore = () => {
6
+ const $ = c(2);
7
+ const { glassmorphismClass } = useGlassmorphism();
8
+ let t0;
9
+ if ($[0] !== glassmorphismClass) {
10
+ t0 = { state: { glassmorphismClass } };
11
+ $[0] = glassmorphismClass;
12
+ $[1] = t0;
13
+ } else t0 = $[1];
14
+ return t0;
15
+ };
16
+ //#endregion
17
+ export { useGlassmorphismBackgroundStore };
@@ -0,0 +1,12 @@
1
+ import { ImageComponent, ImageComponentProps } from "../plain-image/plain-image.mjs";
2
+ import "../plain-image/index.mjs";
3
+ import { FC } from "react";
4
+ //#region src/atoms/effects/image-glow/image-glow.d.ts
5
+ interface ImageGlowProps extends ImageComponentProps {
6
+ className?: string;
7
+ noPlaceholder?: boolean;
8
+ imageComponent?: ImageComponent;
9
+ }
10
+ declare const ImageGlow: FC<ImageGlowProps>;
11
+ //#endregion
12
+ export { ImageGlow, ImageGlowProps };
@@ -0,0 +1,20 @@
1
+ import { imageShimmerPlaceholder } from "../image-shimmer-placeholder/image-shimmer-placeholder.mjs";
2
+ import { PlainImage } from "../plain-image/plain-image.mjs";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/atoms/effects/image-glow/image-glow.tsx
5
+ const ImageGlow = (props) => {
6
+ const { src, alt, fill, width, height, placeholder, className, blurDataURL, noPlaceholder, imageComponent: Image = PlainImage, ...restProps } = props;
7
+ return /* @__PURE__ */ jsx(Image, {
8
+ src,
9
+ alt,
10
+ fill,
11
+ width,
12
+ height,
13
+ ...!noPlaceholder ? { placeholder: placeholder ? placeholder : imageShimmerPlaceholder } : {},
14
+ blurDataURL,
15
+ className: className ? `glow-container ${className}` : "",
16
+ ...restProps
17
+ });
18
+ };
19
+ //#endregion
20
+ export { ImageGlow };
@@ -0,0 +1,2 @@
1
+ import { ImageGlow, ImageGlowProps } from "./image-glow.mjs";
2
+ export { ImageGlow, type ImageGlowProps };
@@ -0,0 +1,6 @@
1
+ import { ImagePlaceholder } from "../plain-image/plain-image.mjs";
2
+ import "../plain-image/index.mjs";
3
+ //#region src/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.d.ts
4
+ declare const imageShimmerPlaceholder: ImagePlaceholder;
5
+ //#endregion
6
+ export { imageShimmerPlaceholder };
@@ -0,0 +1,22 @@
1
+ //#region src/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.tsx
2
+ const shimmer = (w, h) => `
3
+ <svg width="${w}" height="${h}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4
+ <defs>
5
+ <linearGradient id="g">
6
+ <stop stop-color="#001100" offset="20%" />
7
+ <stop stop-color="#002200" offset="50%" />
8
+ <stop stop-color="#001100" offset="70%" />
9
+ </linearGradient>
10
+ </defs>
11
+ <rect width="${w}" height="${h}" fill="#001100" />
12
+ <rect id="r" width="${w}" height="${h}" fill="url(#g)" />
13
+ <animate xlink:href="#r" attributeName="x" from="-${w}" to="${w}" dur="1s" repeatCount="indefinite" />
14
+ </svg>`;
15
+ /**
16
+ * `btoa` is a global in browsers and in Node since v16, so the design system needs no Node types
17
+ * and no environment branch. The shimmer SVG is ASCII, which is all latin1-only `btoa` accepts.
18
+ */
19
+ const toBase64 = (str) => btoa(str);
20
+ const imageShimmerPlaceholder = `data:image/svg+xml;base64,${toBase64(shimmer(700, 475))}`;
21
+ //#endregion
22
+ export { imageShimmerPlaceholder };
@@ -0,0 +1,2 @@
1
+ import { imageShimmerPlaceholder } from "./image-shimmer-placeholder.mjs";
2
+ export { imageShimmerPlaceholder };
@@ -0,0 +1,2 @@
1
+ import { MatrixRain } from "./matrix-rain.mjs";
2
+ export { MatrixRain };
@@ -0,0 +1,12 @@
1
+ //#region src/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/debounce.ts
2
+ const debounce = (func, wait) => {
3
+ let timeout;
4
+ return (...args) => {
5
+ if (timeout) clearTimeout(timeout);
6
+ timeout = setTimeout(() => {
7
+ func(...args);
8
+ }, wait);
9
+ };
10
+ };
11
+ //#endregion
12
+ export { debounce };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { useMatrix2dCanvasStore } from "./use-matrix-2d-canvas-store.mjs";
3
+ import { c } from "react/compiler-runtime";
4
+ import { memo } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/matrix-2d-canvas.tsx
7
+ const Matrix2DCanvasRenderer = (t0) => {
8
+ const $ = c(2);
9
+ const { fontSize, density, paused } = t0;
10
+ const { effects } = useMatrix2dCanvasStore(fontSize, density, paused);
11
+ const { setCanvasEl } = effects;
12
+ let t1;
13
+ if ($[0] !== setCanvasEl) {
14
+ t1 = /* @__PURE__ */ jsx("canvas", {
15
+ className: "pointer-events-none absolute top-0 left-0 block h-full w-full",
16
+ ref: setCanvasEl
17
+ });
18
+ $[0] = setCanvasEl;
19
+ $[1] = t1;
20
+ } else t1 = $[1];
21
+ return t1;
22
+ };
23
+ const Matrix2DCanvas = memo(Matrix2DCanvasRenderer);
24
+ //#endregion
25
+ export { Matrix2DCanvas };