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.
- package/LICENSE +21 -0
- package/README.md +95 -0
- package/dist/atoms/animation/motion-div/index.d.mts +2 -0
- package/dist/atoms/animation/motion-div/motion-div.d.mts +7 -0
- package/dist/atoms/animation/motion-div/motion-div.mjs +37 -0
- package/dist/atoms/animation/motion-div/use-motion-div-store.mjs +17 -0
- package/dist/atoms/buttons/button/button.d.mts +8 -0
- package/dist/atoms/buttons/button/button.mjs +12 -0
- package/dist/atoms/buttons/button/index.d.mts +2 -0
- package/dist/atoms/buttons/switch/index.d.mts +2 -0
- package/dist/atoms/buttons/switch/switch.d.mts +10 -0
- package/dist/atoms/buttons/switch/switch.mjs +40 -0
- package/dist/atoms/buttons/switch/use-switch-store.mjs +7 -0
- package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.d.mts +13 -0
- package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/call-to-action-external-with-tracking.mjs +30 -0
- package/dist/atoms/call-to-actions/call-to-action-external-with-tracking/index.d.mts +2 -0
- package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.d.mts +14 -0
- package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/call-to-action-internal-with-tracking.mjs +29 -0
- package/dist/atoms/call-to-actions/call-to-action-internal-with-tracking/index.d.mts +2 -0
- package/dist/atoms/chip/chip.d.mts +10 -0
- package/dist/atoms/chip/chip.mjs +10 -0
- package/dist/atoms/chip/index.d.mts +2 -0
- package/dist/atoms/effects/glassmorphism-background/glassmorphism-background.d.mts +8 -0
- package/dist/atoms/effects/glassmorphism-background/glassmorphism-background.mjs +33 -0
- package/dist/atoms/effects/glassmorphism-background/index.d.mts +2 -0
- package/dist/atoms/effects/glassmorphism-background/use-glassmorphism-background-store.mjs +17 -0
- package/dist/atoms/effects/image-glow/image-glow.d.mts +12 -0
- package/dist/atoms/effects/image-glow/image-glow.mjs +20 -0
- package/dist/atoms/effects/image-glow/index.d.mts +2 -0
- package/dist/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.d.mts +6 -0
- package/dist/atoms/effects/image-shimmer-placeholder/image-shimmer-placeholder.mjs +22 -0
- package/dist/atoms/effects/image-shimmer-placeholder/index.d.mts +2 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/index.d.mts +2 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/debounce.mjs +12 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/matrix-2d-canvas.mjs +25 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-2d-canvas/use-matrix-2d-canvas-store.mjs +186 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-rain.d.mts +5 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/matrix-rain.mjs +68 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/use-matrix-rain-activity.mjs +40 -0
- package/dist/atoms/effects/matrix-rain/matrix-rain/use-matrix-rain-store.mjs +69 -0
- package/dist/atoms/effects/overlay/index.d.mts +2 -0
- package/dist/atoms/effects/overlay/overlay.d.mts +11 -0
- package/dist/atoms/effects/overlay/overlay.mjs +61 -0
- package/dist/atoms/effects/overlay/use-overlay-store.mjs +8 -0
- package/dist/atoms/effects/pills/index.d.mts +2 -0
- package/dist/atoms/effects/pills/pills.d.mts +10 -0
- package/dist/atoms/effects/pills/pills.mjs +121 -0
- package/dist/atoms/effects/pills/use-pills-store.mjs +17 -0
- package/dist/atoms/effects/plain-image/index.d.mts +2 -0
- package/dist/atoms/effects/plain-image/plain-image.d.mts +45 -0
- package/dist/atoms/effects/plain-image/plain-image.mjs +140 -0
- package/dist/atoms/effects/plain-image/use-plain-image-store.mjs +62 -0
- package/dist/atoms/icons/chat-icon/chat-icon.d.mts +4 -0
- package/dist/atoms/icons/chat-icon/chat-icon.mjs +13 -0
- package/dist/atoms/icons/copy-icon/copy-icon.d.mts +6 -0
- package/dist/atoms/icons/copy-icon/copy-icon.mjs +17 -0
- package/dist/atoms/icons/rounded-icon/index.d.mts +2 -0
- package/dist/atoms/icons/rounded-icon/rounded-icon.d.mts +8 -0
- package/dist/atoms/icons/rounded-icon/rounded-icon.mjs +8 -0
- package/dist/atoms/links/anchor-link/anchor-link.d.mts +31 -0
- package/dist/atoms/links/anchor-link/anchor-link.mjs +14 -0
- package/dist/atoms/links/anchor-link/index.d.mts +2 -0
- package/dist/atoms/links/external-link/external-link.d.mts +13 -0
- package/dist/atoms/links/external-link/external-link.mjs +29 -0
- package/dist/atoms/links/external-link/index.d.mts +2 -0
- package/dist/atoms/links/internal-link/index.d.mts +2 -0
- package/dist/atoms/links/internal-link/internal-link.d.mts +15 -0
- package/dist/atoms/links/internal-link/internal-link.mjs +12 -0
- package/dist/atoms/loader/loader/index.d.mts +2 -0
- package/dist/atoms/loader/loader/loader.d.mts +10 -0
- package/dist/atoms/loader/loader/loader.mjs +62 -0
- package/dist/atoms/typography/input-field/index.d.mts +2 -0
- package/dist/atoms/typography/input-field/input-field.d.mts +9 -0
- package/dist/atoms/typography/input-field/input-field.mjs +8 -0
- package/dist/atoms/typography/label/index.d.mts +2 -0
- package/dist/atoms/typography/label/label.d.mts +9 -0
- package/dist/atoms/typography/label/label.mjs +11 -0
- package/dist/atoms/typography/markdown/markdown-plugins.mjs +16 -0
- package/dist/atoms/typography/markdown/markdown.d.mts +7 -0
- package/dist/atoms/typography/markdown/markdown.mjs +23 -0
- package/dist/atoms/typography/markdown/use-markdown-store.mjs +24 -0
- package/dist/atoms/typography/terminal-blocks/index.d.mts +2 -0
- package/dist/atoms/typography/terminal-blocks/terminal-blocks.d.mts +13 -0
- package/dist/atoms/typography/terminal-blocks/terminal-blocks.mjs +42 -0
- package/dist/atoms/typography/textarea/index.d.mts +2 -0
- package/dist/atoms/typography/textarea/textarea.d.mts +9 -0
- package/dist/atoms/typography/textarea/textarea.mjs +8 -0
- package/dist/chart.d.mts +7 -0
- package/dist/chart.mjs +4 -0
- package/dist/command-palette.d.mts +6 -0
- package/dist/command-palette.mjs +5 -0
- package/dist/hooks/use-clipboard-available.d.mts +4 -0
- package/dist/hooks/use-clipboard-available.mjs +10 -0
- package/dist/hooks/use-device-capabilities.d.mts +10 -0
- package/dist/hooks/use-device-capabilities.mjs +30 -0
- package/dist/hooks/use-glassmorphism.d.mts +10 -0
- package/dist/hooks/use-glassmorphism.mjs +9 -0
- package/dist/hooks/use-in-view-list.d.mts +7 -0
- package/dist/hooks/use-in-view-list.mjs +63 -0
- package/dist/hooks/use-in-view.d.mts +9 -0
- package/dist/hooks/use-in-view.mjs +68 -0
- package/dist/hooks/use-is-ios.d.mts +4 -0
- package/dist/hooks/use-is-ios.mjs +7 -0
- package/dist/hooks/use-lock-body-scroll.d.mts +4 -0
- package/dist/hooks/use-lock-body-scroll.mjs +40 -0
- package/dist/hooks/use-matrix-settings-store.d.mts +5 -0
- package/dist/hooks/use-matrix-settings-store.mjs +15 -0
- package/dist/hooks/use-motion-store.d.mts +13 -0
- package/dist/hooks/use-motion-store.mjs +29 -0
- package/dist/hooks/use-os-modifier-key.d.mts +5 -0
- package/dist/hooks/use-os-modifier-key.mjs +15 -0
- package/dist/hooks/use-reading-progress.d.mts +8 -0
- package/dist/hooks/use-reading-progress.mjs +49 -0
- package/dist/hooks/use-reduced-motions.d.mts +4 -0
- package/dist/hooks/use-reduced-motions.mjs +10 -0
- package/dist/hooks/use-scroll-direction.d.mts +8 -0
- package/dist/hooks/use-scroll-direction.mjs +43 -0
- package/dist/hooks/use-typewriter.d.mts +15 -0
- package/dist/hooks/use-typewriter.mjs +89 -0
- package/dist/hooks/use-webgpu-supported.d.mts +4 -0
- package/dist/hooks/use-webgpu-supported.mjs +16 -0
- package/dist/index.d.mts +153 -0
- package/dist/index.mjs +88 -0
- package/dist/markdown.d.mts +2 -0
- package/dist/markdown.mjs +2 -0
- package/dist/molecules/accordion/accordion/accordion.d.mts +12 -0
- package/dist/molecules/accordion/accordion/accordion.mjs +130 -0
- package/dist/molecules/accordion/accordion/index.d.mts +2 -0
- package/dist/molecules/accordion/accordion/use-accordion-store.mjs +55 -0
- package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.d.mts +21 -0
- package/dist/molecules/breadcrumbs/breadcrumb/breadcrumb.mjs +186 -0
- package/dist/molecules/breadcrumbs/breadcrumb/index.d.mts +2 -0
- package/dist/molecules/breadcrumbs/breadcrumb/use-breadcrumb-store.mjs +29 -0
- package/dist/molecules/buttons/pagination-navigation/index.d.mts +2 -0
- package/dist/molecules/buttons/pagination-navigation/pagination-navigation.d.mts +11 -0
- package/dist/molecules/buttons/pagination-navigation/pagination-navigation.mjs +17 -0
- package/dist/molecules/buttons/pills-buttons/index.d.mts +2 -0
- package/dist/molecules/buttons/pills-buttons/pills-buttons.d.mts +10 -0
- package/dist/molecules/buttons/pills-buttons/pills-buttons.mjs +55 -0
- package/dist/molecules/buttons/segmented-control/segmented-control.d.mts +13 -0
- package/dist/molecules/buttons/segmented-control/segmented-control.mjs +46 -0
- package/dist/molecules/buttons/segmented-control/use-segmented-control-store.mjs +8 -0
- package/dist/molecules/buttons/social-contact/index.d.mts +2 -0
- package/dist/molecules/buttons/social-contact/social-contact.d.mts +10 -0
- package/dist/molecules/buttons/social-contact/social-contact.mjs +13 -0
- package/dist/molecules/buttons/tag/index.d.mts +2 -0
- package/dist/molecules/buttons/tag/tag.d.mts +17 -0
- package/dist/molecules/buttons/tag/tag.mjs +20 -0
- package/dist/molecules/buttons/terminal-button/index.d.mts +2 -0
- package/dist/molecules/buttons/terminal-button/terminal-button.d.mts +15 -0
- package/dist/molecules/buttons/terminal-button/terminal-button.mjs +38 -0
- package/dist/molecules/chart/chart-panel/chart-panel.d.mts +9 -0
- package/dist/molecules/chart/chart-panel/chart-panel.mjs +12 -0
- package/dist/molecules/chart/chart-panel/index.d.mts +2 -0
- package/dist/molecules/chart/chart-tooltip/chart-tooltip.d.mts +8 -0
- package/dist/molecules/chart/chart-tooltip/chart-tooltip.mjs +18 -0
- package/dist/molecules/chart/chart-tooltip/index.d.mts +2 -0
- package/dist/molecules/chart/donut-chart/donut-chart.d.mts +15 -0
- package/dist/molecules/chart/donut-chart/donut-chart.mjs +142 -0
- package/dist/molecules/chart/donut-chart/index.d.mts +2 -0
- package/dist/molecules/containers/content-container/content-container.d.mts +5 -0
- package/dist/molecules/containers/content-container/content-container.mjs +8 -0
- package/dist/molecules/containers/content-container/index.d.mts +2 -0
- package/dist/molecules/controls/control-slider/control-slider.d.mts +14 -0
- package/dist/molecules/controls/control-slider/control-slider.mjs +76 -0
- package/dist/molecules/controls/control-slider/index.d.mts +2 -0
- package/dist/molecules/controls/control-slider/use-control-slider-store.mjs +10 -0
- package/dist/molecules/effects/matrix-background/index.d.mts +2 -0
- package/dist/molecules/effects/matrix-background/matrix-background.d.mts +8 -0
- package/dist/molecules/effects/matrix-background/matrix-background.mjs +15 -0
- package/dist/molecules/effects/matrix-header-background/index.d.mts +2 -0
- package/dist/molecules/effects/matrix-header-background/matrix-header-background.d.mts +8 -0
- package/dist/molecules/effects/matrix-header-background/matrix-header-background.mjs +14 -0
- package/dist/molecules/effects/matrix-terminal/index.d.mts +2 -0
- package/dist/molecules/effects/matrix-terminal/matrix-terminal.d.mts +15 -0
- package/dist/molecules/effects/matrix-terminal/matrix-terminal.mjs +101 -0
- package/dist/molecules/effects/matrix-terminal/use-matrix-terminal-store.mjs +59 -0
- package/dist/molecules/form/filter-input/filter-input.d.mts +10 -0
- package/dist/molecules/form/filter-input/filter-input.mjs +35 -0
- package/dist/molecules/form/filter-input/index.d.mts +2 -0
- package/dist/molecules/form/form-error-summary/form-error-summary.d.mts +10 -0
- package/dist/molecules/form/form-error-summary/form-error-summary.mjs +71 -0
- package/dist/molecules/form/form-error-summary/index.d.mts +2 -0
- package/dist/molecules/form/form-field/form-field.d.mts +10 -0
- package/dist/molecules/form/form-field/form-field.mjs +60 -0
- package/dist/molecules/form/form-field/index.d.mts +2 -0
- package/dist/molecules/form/form-success-message/form-success-message.d.mts +8 -0
- package/dist/molecules/form/form-success-message/form-success-message.mjs +21 -0
- package/dist/molecules/form/form-success-message/index.d.mts +2 -0
- package/dist/molecules/form/form-textarea/form-textarea.d.mts +10 -0
- package/dist/molecules/form/form-textarea/form-textarea.mjs +60 -0
- package/dist/molecules/form/form-textarea/index.d.mts +2 -0
- package/dist/molecules/lightbox-image/index.d.mts +2 -0
- package/dist/molecules/lightbox-image/lightbox-image.d.mts +6 -0
- package/dist/molecules/lightbox-image/lightbox-image.mjs +49 -0
- package/dist/molecules/lightbox-image/use-lightbox-image-store.mjs +29 -0
- package/dist/molecules/links/pills-links/index.d.mts +2 -0
- package/dist/molecules/links/pills-links/pills-links.d.mts +13 -0
- package/dist/molecules/links/pills-links/pills-links.mjs +60 -0
- package/dist/molecules/menu/close/close.d.mts +8 -0
- package/dist/molecules/menu/close/close.mjs +9 -0
- package/dist/molecules/menu/close/index.d.mts +2 -0
- package/dist/molecules/menu/dropdown-menu/dropdown-menu.d.mts +25 -0
- package/dist/molecules/menu/dropdown-menu/dropdown-menu.mjs +143 -0
- package/dist/molecules/menu/dropdown-menu/index.d.mts +2 -0
- package/dist/molecules/menu/dropdown-menu/use-dropdown-menu-store.mjs +108 -0
- package/dist/molecules/menu/hamburger-menu/hamburger-menu.d.mts +8 -0
- package/dist/molecules/menu/hamburger-menu/hamburger-menu.mjs +9 -0
- package/dist/molecules/menu/hamburger-menu/index.d.mts +2 -0
- package/dist/molecules/menu/menu-item/index.d.mts +2 -0
- package/dist/molecules/menu/menu-item/menu-item.d.mts +16 -0
- package/dist/molecules/menu/menu-item/menu-item.mjs +65 -0
- package/dist/molecules/menu/menu-item/use-menu-item-store.mjs +10 -0
- package/dist/molecules/stat-card/index.d.mts +2 -0
- package/dist/molecules/stat-card/stat-card.d.mts +10 -0
- package/dist/molecules/stat-card/stat-card.mjs +21 -0
- package/dist/molecules/terminal-list-item/index.d.mts +2 -0
- package/dist/molecules/terminal-list-item/terminal-list-item.d.mts +9 -0
- package/dist/molecules/terminal-list-item/terminal-list-item.mjs +13 -0
- package/dist/molecules/terminal-progress-bar/index.d.mts +2 -0
- package/dist/molecules/terminal-progress-bar/terminal-progress-bar.d.mts +11 -0
- package/dist/molecules/terminal-progress-bar/terminal-progress-bar.mjs +20 -0
- package/dist/molecules/typography/page-title/index.d.mts +2 -0
- package/dist/molecules/typography/page-title/page-title.d.mts +5 -0
- package/dist/molecules/typography/page-title/page-title.mjs +8 -0
- package/dist/molecules/typography/paragraph-title-with-icon/index.d.mts +2 -0
- package/dist/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.d.mts +8 -0
- package/dist/molecules/typography/paragraph-title-with-icon/paragraph-title-with-icon.mjs +13 -0
- package/dist/molecules/typography/section-heading/index.d.mts +2 -0
- package/dist/molecules/typography/section-heading/section-heading.d.mts +9 -0
- package/dist/molecules/typography/section-heading/section-heading.mjs +17 -0
- package/dist/molecules/video/self-hosted-video/index.d.mts +2 -0
- package/dist/molecules/video/self-hosted-video/self-hosted-video.d.mts +17 -0
- package/dist/molecules/video/self-hosted-video/self-hosted-video.mjs +39 -0
- package/dist/molecules/video/youtube/index.d.mts +2 -0
- package/dist/molecules/video/youtube/youtube.d.mts +9 -0
- package/dist/molecules/video/youtube/youtube.mjs +12 -0
- package/dist/organism/command-palette/command-palette/command-palette.d.mts +12 -0
- package/dist/organism/command-palette/command-palette/command-palette.mjs +148 -0
- package/dist/organism/command-palette/command-palette/index.d.mts +2 -0
- package/dist/organism/command-palette/command-palette/use-command-palette-store.mjs +121 -0
- package/dist/organism/command-palette/command-palette-group/command-palette-group.d.mts +9 -0
- package/dist/organism/command-palette/command-palette-group/command-palette-group.mjs +24 -0
- package/dist/organism/command-palette/command-palette-group/index.d.mts +2 -0
- package/dist/organism/command-palette/command-palette-item/command-palette-item.d.mts +11 -0
- package/dist/organism/command-palette/command-palette-item/command-palette-item.mjs +29 -0
- package/dist/organism/command-palette/command-palette-item/index.d.mts +2 -0
- package/dist/organism/command-palette/command-palette-item/use-command-palette-item-store.mjs +30 -0
- package/dist/organism/command-palette/index.d.mts +9 -0
- package/dist/organism/command-palette/toggle-motion-item/index.d.mts +2 -0
- package/dist/organism/command-palette/toggle-motion-item/toggle-motion-item.d.mts +8 -0
- package/dist/organism/command-palette/toggle-motion-item/toggle-motion-item.mjs +63 -0
- package/dist/organism/command-palette/toggle-motion-item/use-toggle-motion-item-store.mjs +45 -0
- package/dist/organism/cookie-consent-banner/cookie-consent-banner.d.mts +9 -0
- package/dist/organism/cookie-consent-banner/cookie-consent-banner.mjs +71 -0
- package/dist/organism/cookie-consent-banner/use-cookie-consent-banner-store.mjs +10 -0
- package/dist/organism/footer/footer.d.mts +26 -0
- package/dist/organism/footer/footer.mjs +193 -0
- package/dist/organism/footer/index.d.mts +3 -0
- package/dist/organism/footer/use-footer-store.d.mts +22 -0
- package/dist/organism/footer/use-footer-store.mjs +57 -0
- package/dist/organism/header/brand-header/brand-header.d.mts +14 -0
- package/dist/organism/header/brand-header/brand-header.mjs +132 -0
- package/dist/organism/header/brand-header/index.d.mts +2 -0
- package/dist/organism/image-carousel/fullscreen-modal/fullscreen-modal.mjs +148 -0
- package/dist/organism/image-carousel/fullscreen-modal/use-fullscreen-modal-store.mjs +129 -0
- package/dist/organism/image-carousel/image-carousel.d.mts +14 -0
- package/dist/organism/image-carousel/image-carousel.mjs +225 -0
- package/dist/organism/image-carousel/index.d.mts +2 -0
- package/dist/organism/image-carousel/navigation-buttons/navigation-buttons.mjs +22 -0
- package/dist/organism/image-carousel/navigation-buttons/use-navigation-buttons-store.mjs +18 -0
- package/dist/organism/image-carousel/page-indicators/page-indicator-button/page-indicator-button.mjs +14 -0
- package/dist/organism/image-carousel/page-indicators/page-indicator-button/use-page-indicator-button-store.mjs +11 -0
- package/dist/organism/image-carousel/page-indicators/page-indicators.mjs +20 -0
- package/dist/organism/image-carousel/use-image-carousel-store.mjs +88 -0
- package/dist/organism/lightbox/index.d.mts +2 -0
- package/dist/organism/lightbox/lightbox.d.mts +5 -0
- package/dist/organism/lightbox/lightbox.mjs +100 -0
- package/dist/organism/lightbox/use-lightbox-store.mjs +120 -0
- package/dist/organism/loading-bar/loading-bar.d.mts +7 -0
- package/dist/organism/loading-bar/loading-bar.mjs +48 -0
- package/dist/organism/loading-bar/use-loading-bar-store.mjs +52 -0
- package/dist/organism/menu/index.d.mts +3 -0
- package/dist/organism/menu/menu.d.mts +33 -0
- package/dist/organism/menu/menu.mjs +396 -0
- package/dist/organism/menu/use-menu-store.d.mts +22 -0
- package/dist/organism/menu/use-menu-store.mjs +265 -0
- package/dist/organism/profile-hero/index.d.mts +2 -0
- package/dist/organism/profile-hero/profile-hero.d.mts +15 -0
- package/dist/organism/profile-hero/profile-hero.mjs +72 -0
- package/dist/organism/profile-photo/index.d.mts +2 -0
- package/dist/organism/profile-photo/profile-photo.d.mts +12 -0
- package/dist/organism/profile-photo/profile-photo.mjs +17 -0
- package/dist/organism/reading-content-progress-bar/index.d.mts +2 -0
- package/dist/organism/reading-content-progress-bar/reading-content-progress-bar.d.mts +8 -0
- package/dist/organism/reading-content-progress-bar/reading-content-progress-bar.mjs +76 -0
- package/dist/organism/reading-content-progress-bar/use-reading-content-progress-bar-store.mjs +29 -0
- package/dist/organism/social-contacts/index.d.mts +2 -0
- package/dist/organism/social-contacts/social-contacts.d.mts +29 -0
- package/dist/organism/social-contacts/social-contacts.mjs +78 -0
- package/dist/state/command-palette/command-palette-context.d.mts +9 -0
- package/dist/state/command-palette/command-palette-context.mjs +10 -0
- package/dist/state/command-palette/command-palette-events.d.mts +11 -0
- package/dist/state/command-palette/command-palette-events.mjs +15 -0
- package/dist/state/command-palette/command-palette-trigger.d.mts +8 -0
- package/dist/state/lightbox/lightbox-events.d.mts +9 -0
- package/dist/state/lightbox/lightbox-events.mjs +7 -0
- package/dist/state/matrix-rain/matrix-settings.d.mts +37 -0
- package/dist/state/matrix-rain/matrix-settings.mjs +122 -0
- package/dist/state/motion/motion.d.mts +6 -0
- package/dist/state/motion/motion.mjs +17 -0
- package/package.json +160 -0
- package/src/styles/base.css +130 -0
- package/src/styles/components.css +57 -0
- package/src/styles/index.css +23 -0
- package/src/styles/pills.css +85 -0
- package/src/styles/theme.css +254 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Cell, Pie, PieChart, ResponsiveContainer } from "recharts";
|
|
5
|
+
//#region src/molecules/chart/donut-chart/donut-chart.tsx
|
|
6
|
+
const DEFAULT_COLORS = [
|
|
7
|
+
"#00FF41",
|
|
8
|
+
"#015c1a",
|
|
9
|
+
"#7dffa0",
|
|
10
|
+
"#00a329",
|
|
11
|
+
"#003b0e",
|
|
12
|
+
"#cdffdb"
|
|
13
|
+
];
|
|
14
|
+
const DonutChart = (t0) => {
|
|
15
|
+
const $ = c(27);
|
|
16
|
+
const { data, colors: t1, centerLabel, centerSublabel } = t0;
|
|
17
|
+
const colors = t1 === void 0 ? DEFAULT_COLORS : t1;
|
|
18
|
+
const total = data.reduce(_temp, 0);
|
|
19
|
+
let t2;
|
|
20
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
21
|
+
t2 = {
|
|
22
|
+
width: 170,
|
|
23
|
+
height: 170
|
|
24
|
+
};
|
|
25
|
+
$[0] = t2;
|
|
26
|
+
} else t2 = $[0];
|
|
27
|
+
let t3;
|
|
28
|
+
if ($[1] !== colors || $[2] !== data) {
|
|
29
|
+
let t4;
|
|
30
|
+
if ($[4] !== colors) {
|
|
31
|
+
t4 = (entry_0, index) => /* @__PURE__ */ jsx(Cell, { fill: colors[index % colors.length] }, entry_0.label);
|
|
32
|
+
$[4] = colors;
|
|
33
|
+
$[5] = t4;
|
|
34
|
+
} else t4 = $[5];
|
|
35
|
+
t3 = data.map(t4);
|
|
36
|
+
$[1] = colors;
|
|
37
|
+
$[2] = data;
|
|
38
|
+
$[3] = t3;
|
|
39
|
+
} else t3 = $[3];
|
|
40
|
+
let t4;
|
|
41
|
+
if ($[6] !== data || $[7] !== t3) {
|
|
42
|
+
t4 = /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
43
|
+
width: "100%",
|
|
44
|
+
height: "100%",
|
|
45
|
+
initialDimension: t2,
|
|
46
|
+
children: /* @__PURE__ */ jsx(PieChart, { children: /* @__PURE__ */ jsx(Pie, {
|
|
47
|
+
data,
|
|
48
|
+
dataKey: "value",
|
|
49
|
+
nameKey: "label",
|
|
50
|
+
innerRadius: "62%",
|
|
51
|
+
outerRadius: "82%",
|
|
52
|
+
stroke: "none",
|
|
53
|
+
children: t3
|
|
54
|
+
}) })
|
|
55
|
+
});
|
|
56
|
+
$[6] = data;
|
|
57
|
+
$[7] = t3;
|
|
58
|
+
$[8] = t4;
|
|
59
|
+
} else t4 = $[8];
|
|
60
|
+
let t5;
|
|
61
|
+
if ($[9] !== centerLabel || $[10] !== centerSublabel) {
|
|
62
|
+
t5 = centerLabel && /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center",
|
|
64
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "text-accent text-shadow-md text-lg font-bold tabular-nums",
|
|
66
|
+
children: centerLabel
|
|
67
|
+
}), centerSublabel && /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: "text-secondary text-xs",
|
|
69
|
+
children: centerSublabel
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
$[9] = centerLabel;
|
|
73
|
+
$[10] = centerSublabel;
|
|
74
|
+
$[11] = t5;
|
|
75
|
+
} else t5 = $[11];
|
|
76
|
+
let t6;
|
|
77
|
+
if ($[12] !== t4 || $[13] !== t5) {
|
|
78
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
79
|
+
className: "relative h-[170px] w-[170px] flex-none",
|
|
80
|
+
children: [t4, t5]
|
|
81
|
+
});
|
|
82
|
+
$[12] = t4;
|
|
83
|
+
$[13] = t5;
|
|
84
|
+
$[14] = t6;
|
|
85
|
+
} else t6 = $[14];
|
|
86
|
+
let t7;
|
|
87
|
+
if ($[15] !== colors || $[16] !== data || $[17] !== total) {
|
|
88
|
+
let t8;
|
|
89
|
+
if ($[19] !== colors || $[20] !== total) {
|
|
90
|
+
t8 = (entry_1, index_0) => /* @__PURE__ */ jsxs("li", {
|
|
91
|
+
className: "flex items-center gap-2.5",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsx("span", {
|
|
94
|
+
className: "inline-block h-2.5 w-2.5 flex-none rounded-full",
|
|
95
|
+
style: { backgroundColor: colors[index_0 % colors.length] }
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ jsx("span", {
|
|
98
|
+
className: "text-text flex-1 text-sm",
|
|
99
|
+
children: entry_1.label
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ jsxs("span", {
|
|
102
|
+
className: "text-accent text-sm tabular-nums",
|
|
103
|
+
children: [total > 0 ? Math.round(entry_1.value / total * 100) : 0, "%"]
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
}, entry_1.label);
|
|
107
|
+
$[19] = colors;
|
|
108
|
+
$[20] = total;
|
|
109
|
+
$[21] = t8;
|
|
110
|
+
} else t8 = $[21];
|
|
111
|
+
t7 = data.map(t8);
|
|
112
|
+
$[15] = colors;
|
|
113
|
+
$[16] = data;
|
|
114
|
+
$[17] = total;
|
|
115
|
+
$[18] = t7;
|
|
116
|
+
} else t7 = $[18];
|
|
117
|
+
let t8;
|
|
118
|
+
if ($[22] !== t7) {
|
|
119
|
+
t8 = /* @__PURE__ */ jsx("ul", {
|
|
120
|
+
className: "flex min-w-[170px] flex-1 list-none flex-col gap-2.5 p-0",
|
|
121
|
+
children: t7
|
|
122
|
+
});
|
|
123
|
+
$[22] = t7;
|
|
124
|
+
$[23] = t8;
|
|
125
|
+
} else t8 = $[23];
|
|
126
|
+
let t9;
|
|
127
|
+
if ($[24] !== t6 || $[25] !== t8) {
|
|
128
|
+
t9 = /* @__PURE__ */ jsxs("div", {
|
|
129
|
+
className: "flex flex-wrap items-center gap-7",
|
|
130
|
+
children: [t6, t8]
|
|
131
|
+
});
|
|
132
|
+
$[24] = t6;
|
|
133
|
+
$[25] = t8;
|
|
134
|
+
$[26] = t9;
|
|
135
|
+
} else t9 = $[26];
|
|
136
|
+
return t9;
|
|
137
|
+
};
|
|
138
|
+
function _temp(sum, entry) {
|
|
139
|
+
return sum + entry.value;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
export { DonutChart };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
//#region src/molecules/containers/content-container/content-container.tsx
|
|
3
|
+
const ContentContainer = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
4
|
+
className: "container-fixed flex-1 basis-auto mt-13 mb-8",
|
|
5
|
+
children
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ContentContainer };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
//#region src/molecules/controls/control-slider/control-slider.d.ts
|
|
3
|
+
interface ControlSliderProps {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
step: number;
|
|
9
|
+
onChange: (v: number) => void;
|
|
10
|
+
displayValue?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ControlSlider: FC<ControlSliderProps>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ControlSlider };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Label } from "../../../atoms/typography/label/label.mjs";
|
|
3
|
+
import { useControlSliderStore } from "./use-control-slider-store.mjs";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/molecules/controls/control-slider/control-slider.tsx
|
|
7
|
+
const ControlSlider = (t0) => {
|
|
8
|
+
const $ = c(19);
|
|
9
|
+
const { label, value, min, max, step, onChange, displayValue } = t0;
|
|
10
|
+
const { effects } = useControlSliderStore();
|
|
11
|
+
const { handleChange } = effects;
|
|
12
|
+
let t1;
|
|
13
|
+
if ($[0] !== label) {
|
|
14
|
+
t1 = /* @__PURE__ */ jsx(Label, { value: label });
|
|
15
|
+
$[0] = label;
|
|
16
|
+
$[1] = t1;
|
|
17
|
+
} else t1 = $[1];
|
|
18
|
+
const t2 = displayValue ?? value;
|
|
19
|
+
let t3;
|
|
20
|
+
if ($[2] !== t2) {
|
|
21
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
22
|
+
className: "font-mono font-medium",
|
|
23
|
+
children: t2
|
|
24
|
+
});
|
|
25
|
+
$[2] = t2;
|
|
26
|
+
$[3] = t3;
|
|
27
|
+
} else t3 = $[3];
|
|
28
|
+
let t4;
|
|
29
|
+
if ($[4] !== t1 || $[5] !== t3) {
|
|
30
|
+
t4 = /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: "flex justify-between items-center",
|
|
32
|
+
children: [t1, t3]
|
|
33
|
+
});
|
|
34
|
+
$[4] = t1;
|
|
35
|
+
$[5] = t3;
|
|
36
|
+
$[6] = t4;
|
|
37
|
+
} else t4 = $[6];
|
|
38
|
+
let t5;
|
|
39
|
+
if ($[7] !== handleChange || $[8] !== onChange) {
|
|
40
|
+
t5 = handleChange(onChange);
|
|
41
|
+
$[7] = handleChange;
|
|
42
|
+
$[8] = onChange;
|
|
43
|
+
$[9] = t5;
|
|
44
|
+
} else t5 = $[9];
|
|
45
|
+
let t6;
|
|
46
|
+
if ($[10] !== max || $[11] !== min || $[12] !== step || $[13] !== t5 || $[14] !== value) {
|
|
47
|
+
t6 = /* @__PURE__ */ jsx("input", {
|
|
48
|
+
type: "range",
|
|
49
|
+
min,
|
|
50
|
+
max,
|
|
51
|
+
step,
|
|
52
|
+
value,
|
|
53
|
+
onChange: t5,
|
|
54
|
+
className: "w-full accent-accent cursor-pointer"
|
|
55
|
+
});
|
|
56
|
+
$[10] = max;
|
|
57
|
+
$[11] = min;
|
|
58
|
+
$[12] = step;
|
|
59
|
+
$[13] = t5;
|
|
60
|
+
$[14] = value;
|
|
61
|
+
$[15] = t6;
|
|
62
|
+
} else t6 = $[15];
|
|
63
|
+
let t7;
|
|
64
|
+
if ($[16] !== t4 || $[17] !== t6) {
|
|
65
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
66
|
+
className: "flex flex-col gap-1",
|
|
67
|
+
children: [t4, t6]
|
|
68
|
+
});
|
|
69
|
+
$[16] = t4;
|
|
70
|
+
$[17] = t6;
|
|
71
|
+
$[18] = t7;
|
|
72
|
+
} else t7 = $[18];
|
|
73
|
+
return t7;
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { ControlSlider };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/molecules/controls/control-slider/use-control-slider-store.ts
|
|
3
|
+
const useControlSliderStore = () => {
|
|
4
|
+
const handleChange = (onChange) => (e) => {
|
|
5
|
+
onChange(parseFloat(e.target.value));
|
|
6
|
+
};
|
|
7
|
+
return { effects: { handleChange } };
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useControlSliderStore };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
//#region src/molecules/effects/matrix-background/matrix-background.d.ts
|
|
3
|
+
interface ContainerFullscreenWithMatrixProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const MatrixBackground: FC<ContainerFullscreenWithMatrixProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { MatrixBackground };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatrixRain } from "../../../atoms/effects/matrix-rain/matrix-rain/matrix-rain.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/molecules/effects/matrix-background/matrix-background.tsx
|
|
4
|
+
const MatrixBackground = ({ children }) => /* @__PURE__ */ jsxs("div", {
|
|
5
|
+
className: "relative flex flex-col justify-center items-center h-dvh min-h-dvh w-full",
|
|
6
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
7
|
+
className: "absolute top-0 left-0 w-full h-full overflow-hidden",
|
|
8
|
+
children: /* @__PURE__ */ jsx(MatrixRain, {})
|
|
9
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: "relative z-10 flex flex-col justify-center items-center h-full w-full snap-start",
|
|
11
|
+
children
|
|
12
|
+
})]
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MatrixBackground };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
//#region src/molecules/effects/matrix-header-background/matrix-header-background.d.ts
|
|
3
|
+
interface MatrixHeaderBackgroundProps {
|
|
4
|
+
big: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const MatrixHeaderBackground: FC<MatrixHeaderBackgroundProps>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { MatrixHeaderBackground };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MatrixRain } from "../../../atoms/effects/matrix-rain/matrix-rain/matrix-rain.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/molecules/effects/matrix-header-background/matrix-header-background.tsx
|
|
4
|
+
const MatrixHeaderBackground = ({ big }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: `absolute -z-10 ${big ? "h-[350px] sm:h-[400px] md:h-[500px]" : "h-[240px] sm:h-[250px] md:h-[270px]"} top-0 left-0 right-0 overflow-hidden border-b-2 border-solid border-accent shadow-lg`,
|
|
7
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
8
|
+
className: "absolute top-0 left-0 right-0 bottom-0 remove-scroll-width",
|
|
9
|
+
children: /* @__PURE__ */ jsx(MatrixRain, {})
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { MatrixHeaderBackground };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
//#region src/molecules/effects/matrix-terminal/matrix-terminal.d.ts
|
|
3
|
+
interface TerminalLineData {
|
|
4
|
+
text: string;
|
|
5
|
+
type?: "normal" | "error" | "success" | "quote";
|
|
6
|
+
delay?: number;
|
|
7
|
+
}
|
|
8
|
+
interface MatrixTerminalProps {
|
|
9
|
+
lines: TerminalLineData[];
|
|
10
|
+
onComplete?: () => void;
|
|
11
|
+
widthClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const MatrixTerminal: FC<MatrixTerminalProps>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MatrixTerminal };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { MotionDiv } from "../../../atoms/animation/motion-div/motion-div.mjs";
|
|
3
|
+
import { useGlassmorphism } from "../../../hooks/use-glassmorphism.mjs";
|
|
4
|
+
import { Cursor, ErrorText, QuoteText, SuccessText, TerminalLine, TerminalQuoteLine } from "../../../atoms/typography/terminal-blocks/terminal-blocks.mjs";
|
|
5
|
+
import { useMatrixTerminalStore } from "./use-matrix-terminal-store.mjs";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/molecules/effects/matrix-terminal/matrix-terminal.tsx
|
|
9
|
+
const renderLineContent = (text, type) => {
|
|
10
|
+
switch (type) {
|
|
11
|
+
case "error": return /* @__PURE__ */ jsx(ErrorText, { children: text });
|
|
12
|
+
case "success": return /* @__PURE__ */ jsx(SuccessText, { children: text });
|
|
13
|
+
case "quote": return /* @__PURE__ */ jsx(QuoteText, { children: text });
|
|
14
|
+
default: return text;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const renderLine = (line, text, showCursor, index) => {
|
|
18
|
+
if (line.type === "quote") return /* @__PURE__ */ jsx(TerminalQuoteLine, { children: renderLineContent(text, line.type) }, `line-${index}`);
|
|
19
|
+
return /* @__PURE__ */ jsxs(TerminalLine, { children: [
|
|
20
|
+
/* @__PURE__ */ jsxs("span", { children: [">", " "] }),
|
|
21
|
+
renderLineContent(text, line.type),
|
|
22
|
+
showCursor && /* @__PURE__ */ jsx(Cursor, {})
|
|
23
|
+
] }, `line-${index}`);
|
|
24
|
+
};
|
|
25
|
+
const MatrixTerminal = (t0) => {
|
|
26
|
+
const $ = c(16);
|
|
27
|
+
const { lines, onComplete, widthClassName: t1 } = t0;
|
|
28
|
+
const widthClassName = t1 === void 0 ? "w-[95%] sm:w-[600px]" : t1;
|
|
29
|
+
const { state } = useMatrixTerminalStore(lines, onComplete);
|
|
30
|
+
const { containerRef, completedLines, currentLine, currentText } = state;
|
|
31
|
+
const { glassmorphismClass } = useGlassmorphism();
|
|
32
|
+
const t2 = `${glassmorphismClass} ${widthClassName} p-4 min-h-[150px] sm:min-h-[200px]`;
|
|
33
|
+
let t3;
|
|
34
|
+
let t4;
|
|
35
|
+
let t5;
|
|
36
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
37
|
+
t3 = {
|
|
38
|
+
opacity: 0,
|
|
39
|
+
scale: .9
|
|
40
|
+
};
|
|
41
|
+
t4 = {
|
|
42
|
+
opacity: 1,
|
|
43
|
+
scale: 1
|
|
44
|
+
};
|
|
45
|
+
t5 = {
|
|
46
|
+
duration: .2,
|
|
47
|
+
ease: "easeOut"
|
|
48
|
+
};
|
|
49
|
+
$[0] = t3;
|
|
50
|
+
$[1] = t4;
|
|
51
|
+
$[2] = t5;
|
|
52
|
+
} else {
|
|
53
|
+
t3 = $[0];
|
|
54
|
+
t4 = $[1];
|
|
55
|
+
t5 = $[2];
|
|
56
|
+
}
|
|
57
|
+
let t6;
|
|
58
|
+
if ($[3] !== completedLines) {
|
|
59
|
+
t6 = completedLines.map(_temp);
|
|
60
|
+
$[3] = completedLines;
|
|
61
|
+
$[4] = t6;
|
|
62
|
+
} else t6 = $[4];
|
|
63
|
+
let t7;
|
|
64
|
+
if ($[5] !== completedLines.length || $[6] !== currentLine || $[7] !== currentText) {
|
|
65
|
+
t7 = currentLine && renderLine(currentLine, currentText, true, completedLines.length);
|
|
66
|
+
$[5] = completedLines.length;
|
|
67
|
+
$[6] = currentLine;
|
|
68
|
+
$[7] = currentText;
|
|
69
|
+
$[8] = t7;
|
|
70
|
+
} else t7 = $[8];
|
|
71
|
+
let t8;
|
|
72
|
+
if ($[9] !== t2 || $[10] !== t6 || $[11] !== t7) {
|
|
73
|
+
t8 = /* @__PURE__ */ jsxs(MotionDiv, {
|
|
74
|
+
className: t2,
|
|
75
|
+
initial: t3,
|
|
76
|
+
animate: t4,
|
|
77
|
+
transition: t5,
|
|
78
|
+
children: [t6, t7]
|
|
79
|
+
});
|
|
80
|
+
$[9] = t2;
|
|
81
|
+
$[10] = t6;
|
|
82
|
+
$[11] = t7;
|
|
83
|
+
$[12] = t8;
|
|
84
|
+
} else t8 = $[12];
|
|
85
|
+
let t9;
|
|
86
|
+
if ($[13] !== containerRef || $[14] !== t8) {
|
|
87
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
88
|
+
ref: containerRef,
|
|
89
|
+
children: t8
|
|
90
|
+
});
|
|
91
|
+
$[13] = containerRef;
|
|
92
|
+
$[14] = t8;
|
|
93
|
+
$[15] = t9;
|
|
94
|
+
} else t9 = $[15];
|
|
95
|
+
return t9;
|
|
96
|
+
};
|
|
97
|
+
function _temp(line, index) {
|
|
98
|
+
return renderLine(line, line.text, false, index);
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { MatrixTerminal };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useInView } from "../../../hooks/use-in-view.mjs";
|
|
3
|
+
import { useTypewriter } from "../../../hooks/use-typewriter.mjs";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { useEffect } from "react";
|
|
6
|
+
//#region src/molecules/effects/matrix-terminal/use-matrix-terminal-store.ts
|
|
7
|
+
const useMatrixTerminalStore = (lines, onComplete) => {
|
|
8
|
+
const $ = c(12);
|
|
9
|
+
let t0;
|
|
10
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11
|
+
t0 = {
|
|
12
|
+
threshold: .1,
|
|
13
|
+
triggerOnce: true
|
|
14
|
+
};
|
|
15
|
+
$[0] = t0;
|
|
16
|
+
} else t0 = $[0];
|
|
17
|
+
const [containerRef, isInView] = useInView(t0);
|
|
18
|
+
const { completedLines, currentLine, currentText } = useTypewriter(lines, 50, isInView);
|
|
19
|
+
let t1;
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[1] !== completedLines.length || $[2] !== currentLine || $[3] !== lines.length || $[4] !== onComplete) {
|
|
22
|
+
t1 = () => {
|
|
23
|
+
if (completedLines.length === lines.length && !currentLine && onComplete) onComplete();
|
|
24
|
+
};
|
|
25
|
+
t2 = [
|
|
26
|
+
completedLines.length,
|
|
27
|
+
currentLine,
|
|
28
|
+
lines.length,
|
|
29
|
+
onComplete
|
|
30
|
+
];
|
|
31
|
+
$[1] = completedLines.length;
|
|
32
|
+
$[2] = currentLine;
|
|
33
|
+
$[3] = lines.length;
|
|
34
|
+
$[4] = onComplete;
|
|
35
|
+
$[5] = t1;
|
|
36
|
+
$[6] = t2;
|
|
37
|
+
} else {
|
|
38
|
+
t1 = $[5];
|
|
39
|
+
t2 = $[6];
|
|
40
|
+
}
|
|
41
|
+
useEffect(t1, t2);
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[7] !== completedLines || $[8] !== containerRef || $[9] !== currentLine || $[10] !== currentText) {
|
|
44
|
+
t3 = { state: {
|
|
45
|
+
containerRef,
|
|
46
|
+
completedLines,
|
|
47
|
+
currentLine,
|
|
48
|
+
currentText
|
|
49
|
+
} };
|
|
50
|
+
$[7] = completedLines;
|
|
51
|
+
$[8] = containerRef;
|
|
52
|
+
$[9] = currentLine;
|
|
53
|
+
$[10] = currentText;
|
|
54
|
+
$[11] = t3;
|
|
55
|
+
} else t3 = $[11];
|
|
56
|
+
return t3;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { useMatrixTerminalStore };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChangeEvent, FC } from "react";
|
|
2
|
+
//#region src/molecules/form/filter-input/filter-input.d.ts
|
|
3
|
+
interface FilterInputProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const FilterInput: FC<FilterInputProps>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { FilterInput, FilterInputProps };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { BiSearchAlt } from "react-icons/bi";
|
|
5
|
+
//#region src/molecules/form/filter-input/filter-input.tsx
|
|
6
|
+
const FilterInput = (t0) => {
|
|
7
|
+
const $ = c(5);
|
|
8
|
+
const { value, onChange, placeholder: t1 } = t0;
|
|
9
|
+
const placeholder = t1 === void 0 ? "Filter..." : t1;
|
|
10
|
+
let t2;
|
|
11
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
12
|
+
t2 = /* @__PURE__ */ jsx(BiSearchAlt, { className: "text-accent size-5 shrink-0" });
|
|
13
|
+
$[0] = t2;
|
|
14
|
+
} else t2 = $[0];
|
|
15
|
+
let t3;
|
|
16
|
+
if ($[1] !== onChange || $[2] !== placeholder || $[3] !== value) {
|
|
17
|
+
t3 = /* @__PURE__ */ jsxs("div", {
|
|
18
|
+
className: "glow-container flex items-center gap-3 px-3 py-3",
|
|
19
|
+
children: [t2, /* @__PURE__ */ jsx("input", {
|
|
20
|
+
className: "text-accent w-full bg-transparent outline-none",
|
|
21
|
+
placeholder,
|
|
22
|
+
value,
|
|
23
|
+
onChange,
|
|
24
|
+
"aria-label": placeholder
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
$[1] = onChange;
|
|
28
|
+
$[2] = placeholder;
|
|
29
|
+
$[3] = value;
|
|
30
|
+
$[4] = t3;
|
|
31
|
+
} else t3 = $[4];
|
|
32
|
+
return t3;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { FilterInput };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
//#region src/molecules/form/form-error-summary/form-error-summary.d.ts
|
|
3
|
+
interface FormErrorSummaryProps {
|
|
4
|
+
errorsList?: Record<string, string>;
|
|
5
|
+
errorName?: string;
|
|
6
|
+
show: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const FormErrorSummary: FC<FormErrorSummaryProps>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { FormErrorSummary, FormErrorSummaryProps };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { BiErrorCircle } from "react-icons/bi";
|
|
5
|
+
//#region src/molecules/form/form-error-summary/form-error-summary.tsx
|
|
6
|
+
const FormErrorSummary = (t0) => {
|
|
7
|
+
const $ = c(10);
|
|
8
|
+
const { errorsList, errorName, show } = t0;
|
|
9
|
+
let t1;
|
|
10
|
+
if ($[0] !== errorsList) {
|
|
11
|
+
t1 = errorsList ? Object.values(errorsList) : [];
|
|
12
|
+
$[0] = errorsList;
|
|
13
|
+
$[1] = t1;
|
|
14
|
+
} else t1 = $[1];
|
|
15
|
+
const errorMessages = t1;
|
|
16
|
+
if (!show) return null;
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
19
|
+
t2 = /* @__PURE__ */ jsx(BiErrorCircle, {
|
|
20
|
+
size: 20,
|
|
21
|
+
className: "mt-0.5 shrink-0 text-red-500"
|
|
22
|
+
});
|
|
23
|
+
$[2] = t2;
|
|
24
|
+
} else t2 = $[2];
|
|
25
|
+
let t3;
|
|
26
|
+
if ($[3] !== errorName) {
|
|
27
|
+
t3 = /* @__PURE__ */ jsxs("div", {
|
|
28
|
+
className: "flex flex-row items-center justify-center gap-1 align-middle",
|
|
29
|
+
children: [t2, /* @__PURE__ */ jsx("p", {
|
|
30
|
+
className: "font-medium text-red-500",
|
|
31
|
+
children: errorName
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
$[3] = errorName;
|
|
35
|
+
$[4] = t3;
|
|
36
|
+
} else t3 = $[4];
|
|
37
|
+
let t4;
|
|
38
|
+
if ($[5] !== errorMessages) {
|
|
39
|
+
t4 = errorMessages.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
40
|
+
className: "flex-1",
|
|
41
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
42
|
+
className: "list-inside list-disc space-y-1 text-sm text-red-500",
|
|
43
|
+
children: errorMessages.map(_temp)
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
$[5] = errorMessages;
|
|
47
|
+
$[6] = t4;
|
|
48
|
+
} else t4 = $[6];
|
|
49
|
+
let t5;
|
|
50
|
+
if ($[7] !== t3 || $[8] !== t4) {
|
|
51
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: "rounded-lg border border-red-500 bg-red-500/10 p-4",
|
|
53
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
54
|
+
className: "flex flex-col items-start",
|
|
55
|
+
children: [t3, t4]
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
$[7] = t3;
|
|
59
|
+
$[8] = t4;
|
|
60
|
+
$[9] = t5;
|
|
61
|
+
} else t5 = $[9];
|
|
62
|
+
return t5;
|
|
63
|
+
};
|
|
64
|
+
function _temp(error, index) {
|
|
65
|
+
return /* @__PURE__ */ jsx("li", {
|
|
66
|
+
className: "before:content-none",
|
|
67
|
+
children: error
|
|
68
|
+
}, index);
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { FormErrorSummary };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, InputHTMLAttributes, ReactElement } from "react";
|
|
2
|
+
//#region src/molecules/form/form-field/form-field.d.ts
|
|
3
|
+
interface FormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "className"> {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: ReactElement;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const FormField: FC<FormFieldProps>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { FormField, FormFieldProps };
|