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
package/dist/organism/image-carousel/page-indicators/page-indicator-button/page-indicator-button.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { usePageIndicatorButtonStore } from "./use-page-indicator-button-store.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/organism/image-carousel/page-indicators/page-indicator-button/page-indicator-button.tsx
|
|
4
|
+
const PageIndicatorButton = ({ index, isActive, onSelect }) => {
|
|
5
|
+
const { effects } = usePageIndicatorButtonStore(index, onSelect);
|
|
6
|
+
const { handleClick } = effects;
|
|
7
|
+
return /* @__PURE__ */ jsx("button", {
|
|
8
|
+
onClick: handleClick,
|
|
9
|
+
className: `size-3 rounded-full transition-all duration-300 ${isActive ? "bg-primary scale-125 shadow-lg" : "bg-primary-text/30 hover:bg-primary-text/50"}`,
|
|
10
|
+
"aria-label": `Go to image ${index + 1}`
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { PageIndicatorButton };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/organism/image-carousel/page-indicators/page-indicator-button/use-page-indicator-button-store.ts
|
|
3
|
+
const usePageIndicatorButtonStore = (index, onSelect) => {
|
|
4
|
+
const handleClick = (e) => {
|
|
5
|
+
e.stopPropagation();
|
|
6
|
+
onSelect(index);
|
|
7
|
+
};
|
|
8
|
+
return { effects: { handleClick } };
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { usePageIndicatorButtonStore };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useGlassmorphism } from "../../../hooks/use-glassmorphism.mjs";
|
|
2
|
+
import { PageIndicatorButton } from "./page-indicator-button/page-indicator-button.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/organism/image-carousel/page-indicators/page-indicators.tsx
|
|
5
|
+
const PageIndicators = ({ images, currentIndex, onSelect, glassmorphism = false }) => {
|
|
6
|
+
const { glassmorphismClass } = useGlassmorphism();
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
className: "absolute bottom-4 left-1/2 -translate-x-1/2",
|
|
9
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: `flex gap-2 ${glassmorphism ? `rounded-full p-3 ${glassmorphismClass}` : ""}`,
|
|
11
|
+
children: images.map((_, index) => /* @__PURE__ */ jsx(PageIndicatorButton, {
|
|
12
|
+
index,
|
|
13
|
+
isActive: index === currentIndex,
|
|
14
|
+
onSelect
|
|
15
|
+
}, index))
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PageIndicators };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
//#region src/organism/image-carousel/use-image-carousel-store.ts
|
|
5
|
+
const useImageCarouselStore = (imagesLength) => {
|
|
6
|
+
const $ = c(19);
|
|
7
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
8
|
+
const [isFullscreen, setIsFullscreen] = useState(false);
|
|
9
|
+
let t0;
|
|
10
|
+
if ($[0] !== imagesLength) {
|
|
11
|
+
t0 = () => {
|
|
12
|
+
setCurrentIndex((prev) => prev === 0 ? imagesLength - 1 : prev - 1);
|
|
13
|
+
};
|
|
14
|
+
$[0] = imagesLength;
|
|
15
|
+
$[1] = t0;
|
|
16
|
+
} else t0 = $[1];
|
|
17
|
+
const goToPrevious = t0;
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[2] !== imagesLength) {
|
|
20
|
+
t1 = () => {
|
|
21
|
+
setCurrentIndex((prev_0) => prev_0 === imagesLength - 1 ? 0 : prev_0 + 1);
|
|
22
|
+
};
|
|
23
|
+
$[2] = imagesLength;
|
|
24
|
+
$[3] = t1;
|
|
25
|
+
} else t1 = $[3];
|
|
26
|
+
const goToNext = t1;
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
29
|
+
t2 = () => setIsFullscreen(true);
|
|
30
|
+
$[4] = t2;
|
|
31
|
+
} else t2 = $[4];
|
|
32
|
+
const openFullscreen = t2;
|
|
33
|
+
let t3;
|
|
34
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
|
+
t3 = () => setIsFullscreen(false);
|
|
36
|
+
$[5] = t3;
|
|
37
|
+
} else t3 = $[5];
|
|
38
|
+
const closeFullscreen = t3;
|
|
39
|
+
let t4;
|
|
40
|
+
if ($[6] !== goToNext || $[7] !== goToPrevious) {
|
|
41
|
+
t4 = (_, info) => {
|
|
42
|
+
if (info.offset.x > 50) goToPrevious();
|
|
43
|
+
else if (info.offset.x < -50) goToNext();
|
|
44
|
+
};
|
|
45
|
+
$[6] = goToNext;
|
|
46
|
+
$[7] = goToPrevious;
|
|
47
|
+
$[8] = t4;
|
|
48
|
+
} else t4 = $[8];
|
|
49
|
+
const handleDragEnd = t4;
|
|
50
|
+
let t5;
|
|
51
|
+
if ($[9] !== currentIndex || $[10] !== isFullscreen) {
|
|
52
|
+
t5 = {
|
|
53
|
+
currentIndex,
|
|
54
|
+
isFullscreen
|
|
55
|
+
};
|
|
56
|
+
$[9] = currentIndex;
|
|
57
|
+
$[10] = isFullscreen;
|
|
58
|
+
$[11] = t5;
|
|
59
|
+
} else t5 = $[11];
|
|
60
|
+
let t6;
|
|
61
|
+
if ($[12] !== goToNext || $[13] !== goToPrevious || $[14] !== handleDragEnd) {
|
|
62
|
+
t6 = {
|
|
63
|
+
goToPrevious,
|
|
64
|
+
goToNext,
|
|
65
|
+
openFullscreen,
|
|
66
|
+
closeFullscreen,
|
|
67
|
+
setCurrentIndex,
|
|
68
|
+
handleDragEnd
|
|
69
|
+
};
|
|
70
|
+
$[12] = goToNext;
|
|
71
|
+
$[13] = goToPrevious;
|
|
72
|
+
$[14] = handleDragEnd;
|
|
73
|
+
$[15] = t6;
|
|
74
|
+
} else t6 = $[15];
|
|
75
|
+
let t7;
|
|
76
|
+
if ($[16] !== t5 || $[17] !== t6) {
|
|
77
|
+
t7 = {
|
|
78
|
+
state: t5,
|
|
79
|
+
effects: t6
|
|
80
|
+
};
|
|
81
|
+
$[16] = t5;
|
|
82
|
+
$[17] = t6;
|
|
83
|
+
$[18] = t7;
|
|
84
|
+
} else t7 = $[18];
|
|
85
|
+
return t7;
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { useImageCarouselStore };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { MotionDiv } from "../../atoms/animation/motion-div/motion-div.mjs";
|
|
3
|
+
import { Button } from "../../atoms/buttons/button/button.mjs";
|
|
4
|
+
import { Overlay } from "../../atoms/effects/overlay/overlay.mjs";
|
|
5
|
+
import { useLightboxStore } from "./use-lightbox-store.mjs";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { BiX } from "react-icons/bi";
|
|
9
|
+
//#region src/organism/lightbox/lightbox.tsx
|
|
10
|
+
const lightboxVariants = {
|
|
11
|
+
hidden: {
|
|
12
|
+
opacity: 0,
|
|
13
|
+
scale: .9
|
|
14
|
+
},
|
|
15
|
+
visible: {
|
|
16
|
+
opacity: 1,
|
|
17
|
+
scale: 1
|
|
18
|
+
},
|
|
19
|
+
exit: {
|
|
20
|
+
opacity: 0,
|
|
21
|
+
scale: .9,
|
|
22
|
+
transition: { duration: .2 }
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const Lightbox = () => {
|
|
26
|
+
const $ = c(15);
|
|
27
|
+
const { state, effects } = useLightboxStore();
|
|
28
|
+
const { open, src, alt } = state;
|
|
29
|
+
const { setDialogEl, close, stopPropagation } = effects;
|
|
30
|
+
if (!open) return null;
|
|
31
|
+
let t0;
|
|
32
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
33
|
+
t0 = /* @__PURE__ */ jsx(BiX, { className: "size-8 md:size-10" });
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
} else t0 = $[0];
|
|
36
|
+
let t1;
|
|
37
|
+
if ($[1] !== close) {
|
|
38
|
+
t1 = /* @__PURE__ */ jsx(Button, {
|
|
39
|
+
onClick: close,
|
|
40
|
+
className: "fixed top-4 right-4 z-50 p-2!",
|
|
41
|
+
"aria-label": "Close lightbox",
|
|
42
|
+
children: t0
|
|
43
|
+
});
|
|
44
|
+
$[1] = close;
|
|
45
|
+
$[2] = t1;
|
|
46
|
+
} else t1 = $[2];
|
|
47
|
+
const t2 = alt || "Enlarged image";
|
|
48
|
+
let t3;
|
|
49
|
+
if ($[3] !== alt || $[4] !== src) {
|
|
50
|
+
t3 = /* @__PURE__ */ jsx(MotionDiv, {
|
|
51
|
+
variants: lightboxVariants,
|
|
52
|
+
initial: "hidden",
|
|
53
|
+
animate: "visible",
|
|
54
|
+
exit: "exit",
|
|
55
|
+
className: "flex h-full w-full items-center justify-center",
|
|
56
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
57
|
+
src,
|
|
58
|
+
alt,
|
|
59
|
+
className: "max-h-[90vh] max-w-[90vw] rounded-xl object-contain"
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
$[3] = alt;
|
|
63
|
+
$[4] = src;
|
|
64
|
+
$[5] = t3;
|
|
65
|
+
} else t3 = $[5];
|
|
66
|
+
let t4;
|
|
67
|
+
if ($[6] !== setDialogEl || $[7] !== stopPropagation || $[8] !== t2 || $[9] !== t3) {
|
|
68
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
69
|
+
ref: setDialogEl,
|
|
70
|
+
role: "dialog",
|
|
71
|
+
"aria-modal": "true",
|
|
72
|
+
"aria-label": t2,
|
|
73
|
+
tabIndex: -1,
|
|
74
|
+
onClick: stopPropagation,
|
|
75
|
+
className: "fixed top-1/2 left-1/2 z-50 max-h-[90vh] max-w-[90vw] -translate-x-1/2 -translate-y-1/2 p-4",
|
|
76
|
+
children: t3
|
|
77
|
+
});
|
|
78
|
+
$[6] = setDialogEl;
|
|
79
|
+
$[7] = stopPropagation;
|
|
80
|
+
$[8] = t2;
|
|
81
|
+
$[9] = t3;
|
|
82
|
+
$[10] = t4;
|
|
83
|
+
} else t4 = $[10];
|
|
84
|
+
let t5;
|
|
85
|
+
if ($[11] !== close || $[12] !== t1 || $[13] !== t4) {
|
|
86
|
+
t5 = /* @__PURE__ */ jsxs(Overlay, {
|
|
87
|
+
onClick: close,
|
|
88
|
+
delay: 0,
|
|
89
|
+
className: "z-[60]!",
|
|
90
|
+
children: [t1, t4]
|
|
91
|
+
});
|
|
92
|
+
$[11] = close;
|
|
93
|
+
$[12] = t1;
|
|
94
|
+
$[13] = t4;
|
|
95
|
+
$[14] = t5;
|
|
96
|
+
} else t5 = $[14];
|
|
97
|
+
return t5;
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { Lightbox };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { lightboxOpenEvent } from "../../state/lightbox/lightbox-events.mjs";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
//#region src/organism/lightbox/use-lightbox-store.ts
|
|
6
|
+
const useLightboxStore = () => {
|
|
7
|
+
const $ = c(20);
|
|
8
|
+
const [open, setOpen] = useState(false);
|
|
9
|
+
const [src, setSrc] = useState("");
|
|
10
|
+
const [alt, setAlt] = useState("");
|
|
11
|
+
const [triggerEl, setTriggerEl] = useState(null);
|
|
12
|
+
const [dialogEl, setDialogEl] = useState(null);
|
|
13
|
+
let t0;
|
|
14
|
+
let t1;
|
|
15
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
+
t0 = () => {
|
|
17
|
+
const handleOpenEvent = (event) => {
|
|
18
|
+
const { detail } = event;
|
|
19
|
+
setTriggerEl(document.activeElement instanceof HTMLElement ? document.activeElement : null);
|
|
20
|
+
setSrc(detail.src);
|
|
21
|
+
setAlt(detail.alt);
|
|
22
|
+
setOpen(true);
|
|
23
|
+
};
|
|
24
|
+
window.addEventListener(lightboxOpenEvent, handleOpenEvent);
|
|
25
|
+
return () => window.removeEventListener(lightboxOpenEvent, handleOpenEvent);
|
|
26
|
+
};
|
|
27
|
+
t1 = [];
|
|
28
|
+
$[0] = t0;
|
|
29
|
+
$[1] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
t0 = $[0];
|
|
32
|
+
t1 = $[1];
|
|
33
|
+
}
|
|
34
|
+
useEffect(t0, t1);
|
|
35
|
+
let t2;
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[2] !== dialogEl) {
|
|
38
|
+
t2 = () => {
|
|
39
|
+
dialogEl?.focus();
|
|
40
|
+
};
|
|
41
|
+
t3 = [dialogEl];
|
|
42
|
+
$[2] = dialogEl;
|
|
43
|
+
$[3] = t2;
|
|
44
|
+
$[4] = t3;
|
|
45
|
+
} else {
|
|
46
|
+
t2 = $[3];
|
|
47
|
+
t3 = $[4];
|
|
48
|
+
}
|
|
49
|
+
useEffect(t2, t3);
|
|
50
|
+
let t4;
|
|
51
|
+
if ($[5] !== triggerEl) {
|
|
52
|
+
t4 = () => {
|
|
53
|
+
setOpen(false);
|
|
54
|
+
triggerEl?.focus();
|
|
55
|
+
};
|
|
56
|
+
$[5] = triggerEl;
|
|
57
|
+
$[6] = t4;
|
|
58
|
+
} else t4 = $[6];
|
|
59
|
+
const close = t4;
|
|
60
|
+
const stopPropagation = _temp;
|
|
61
|
+
let t5;
|
|
62
|
+
let t6;
|
|
63
|
+
if ($[7] !== close || $[8] !== open) {
|
|
64
|
+
t5 = () => {
|
|
65
|
+
if (!open) return;
|
|
66
|
+
const handleEsc = (e_0) => {
|
|
67
|
+
if (e_0.key === "Escape") close();
|
|
68
|
+
};
|
|
69
|
+
window.addEventListener("keydown", handleEsc, true);
|
|
70
|
+
return () => window.removeEventListener("keydown", handleEsc, true);
|
|
71
|
+
};
|
|
72
|
+
t6 = [open, close];
|
|
73
|
+
$[7] = close;
|
|
74
|
+
$[8] = open;
|
|
75
|
+
$[9] = t5;
|
|
76
|
+
$[10] = t6;
|
|
77
|
+
} else {
|
|
78
|
+
t5 = $[9];
|
|
79
|
+
t6 = $[10];
|
|
80
|
+
}
|
|
81
|
+
useEffect(t5, t6);
|
|
82
|
+
let t7;
|
|
83
|
+
if ($[11] !== alt || $[12] !== open || $[13] !== src) {
|
|
84
|
+
t7 = {
|
|
85
|
+
open,
|
|
86
|
+
src,
|
|
87
|
+
alt
|
|
88
|
+
};
|
|
89
|
+
$[11] = alt;
|
|
90
|
+
$[12] = open;
|
|
91
|
+
$[13] = src;
|
|
92
|
+
$[14] = t7;
|
|
93
|
+
} else t7 = $[14];
|
|
94
|
+
let t8;
|
|
95
|
+
if ($[15] !== close) {
|
|
96
|
+
t8 = {
|
|
97
|
+
setDialogEl,
|
|
98
|
+
close,
|
|
99
|
+
stopPropagation
|
|
100
|
+
};
|
|
101
|
+
$[15] = close;
|
|
102
|
+
$[16] = t8;
|
|
103
|
+
} else t8 = $[16];
|
|
104
|
+
let t9;
|
|
105
|
+
if ($[17] !== t7 || $[18] !== t8) {
|
|
106
|
+
t9 = {
|
|
107
|
+
state: t7,
|
|
108
|
+
effects: t8
|
|
109
|
+
};
|
|
110
|
+
$[17] = t7;
|
|
111
|
+
$[18] = t8;
|
|
112
|
+
$[19] = t9;
|
|
113
|
+
} else t9 = $[19];
|
|
114
|
+
return t9;
|
|
115
|
+
};
|
|
116
|
+
function _temp(e) {
|
|
117
|
+
return e.stopPropagation();
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
export { useLightboxStore };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Cursor, TerminalLine } from "../../atoms/typography/terminal-blocks/terminal-blocks.mjs";
|
|
3
|
+
import { useLoadingBarStore } from "./use-loading-bar-store.mjs";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/organism/loading-bar/loading-bar.tsx
|
|
7
|
+
const LoadingBar = (t0) => {
|
|
8
|
+
const $ = c(8);
|
|
9
|
+
const { message: t1 } = t0;
|
|
10
|
+
const message = t1 === void 0 ? "Processing..." : t1;
|
|
11
|
+
const { state } = useLoadingBarStore();
|
|
12
|
+
const { animatedBar } = state;
|
|
13
|
+
const t2 = `> ${message}`;
|
|
14
|
+
let t3;
|
|
15
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
+
t3 = /* @__PURE__ */ jsx(Cursor, {});
|
|
17
|
+
$[0] = t3;
|
|
18
|
+
} else t3 = $[0];
|
|
19
|
+
let t4;
|
|
20
|
+
if ($[1] !== t2) {
|
|
21
|
+
t4 = /* @__PURE__ */ jsxs(TerminalLine, { children: [
|
|
22
|
+
t2,
|
|
23
|
+
" ",
|
|
24
|
+
t3
|
|
25
|
+
] });
|
|
26
|
+
$[1] = t2;
|
|
27
|
+
$[2] = t4;
|
|
28
|
+
} else t4 = $[2];
|
|
29
|
+
let t5;
|
|
30
|
+
if ($[3] !== animatedBar) {
|
|
31
|
+
t5 = /* @__PURE__ */ jsx(TerminalLine, { children: animatedBar });
|
|
32
|
+
$[3] = animatedBar;
|
|
33
|
+
$[4] = t5;
|
|
34
|
+
} else t5 = $[4];
|
|
35
|
+
let t6;
|
|
36
|
+
if ($[5] !== t4 || $[6] !== t5) {
|
|
37
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
38
|
+
className: "flex w-full flex-col items-center justify-center",
|
|
39
|
+
children: [t4, t5]
|
|
40
|
+
});
|
|
41
|
+
$[5] = t4;
|
|
42
|
+
$[6] = t5;
|
|
43
|
+
$[7] = t6;
|
|
44
|
+
} else t6 = $[7];
|
|
45
|
+
return t6;
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { LoadingBar };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
//#region src/organism/loading-bar/use-loading-bar-store.ts
|
|
5
|
+
const getAnimatedBar = (position, length = 24) => {
|
|
6
|
+
const bar = Array(length).fill("░");
|
|
7
|
+
const blockSize = 3;
|
|
8
|
+
for (let i = 0; i < blockSize; i++) {
|
|
9
|
+
const index = (position + i) % length;
|
|
10
|
+
bar[index] = "█";
|
|
11
|
+
}
|
|
12
|
+
return `[${bar.join("")}]`;
|
|
13
|
+
};
|
|
14
|
+
const useLoadingBarStore = () => {
|
|
15
|
+
const $ = c(6);
|
|
16
|
+
const [position, setPosition] = useState(0);
|
|
17
|
+
let t0;
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20
|
+
t0 = () => {
|
|
21
|
+
const interval = setInterval(() => {
|
|
22
|
+
setPosition(_temp);
|
|
23
|
+
}, 100);
|
|
24
|
+
return () => clearInterval(interval);
|
|
25
|
+
};
|
|
26
|
+
t1 = [];
|
|
27
|
+
$[0] = t0;
|
|
28
|
+
$[1] = t1;
|
|
29
|
+
} else {
|
|
30
|
+
t0 = $[0];
|
|
31
|
+
t1 = $[1];
|
|
32
|
+
}
|
|
33
|
+
useEffect(t0, t1);
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[2] !== position) {
|
|
36
|
+
t2 = getAnimatedBar(position);
|
|
37
|
+
$[2] = position;
|
|
38
|
+
$[3] = t2;
|
|
39
|
+
} else t2 = $[3];
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[4] !== t2) {
|
|
42
|
+
t3 = { state: { animatedBar: t2 } };
|
|
43
|
+
$[4] = t2;
|
|
44
|
+
$[5] = t3;
|
|
45
|
+
} else t3 = $[5];
|
|
46
|
+
return t3;
|
|
47
|
+
};
|
|
48
|
+
function _temp(prev) {
|
|
49
|
+
return (prev + 1) % 24;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { useLoadingBarStore };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LinkComponent } from "../../atoms/links/anchor-link/anchor-link.mjs";
|
|
2
|
+
import "../../atoms/links/anchor-link/index.mjs";
|
|
3
|
+
import { MenuTrackingCallbacks } from "./use-menu-store.mjs";
|
|
4
|
+
import { FC } from "react";
|
|
5
|
+
//#region src/organism/menu/menu.d.ts
|
|
6
|
+
interface MenuNavHrefs {
|
|
7
|
+
blog: string;
|
|
8
|
+
blogAuthors: string;
|
|
9
|
+
blogAuthor: string;
|
|
10
|
+
blogTags: string;
|
|
11
|
+
blogArchive: string;
|
|
12
|
+
blogStats: string;
|
|
13
|
+
dsaRoadmap: string;
|
|
14
|
+
dsaExercises: string;
|
|
15
|
+
chat: string;
|
|
16
|
+
mcp: string;
|
|
17
|
+
easterEggHunt: string;
|
|
18
|
+
aboutMe: string;
|
|
19
|
+
art: string;
|
|
20
|
+
videogames: string;
|
|
21
|
+
contact: string;
|
|
22
|
+
}
|
|
23
|
+
interface MenuProps {
|
|
24
|
+
linkComponent?: LinkComponent;
|
|
25
|
+
/** The path currently being viewed, used to mark the active entry. Injected by the consumer's router. */
|
|
26
|
+
currentPath: string;
|
|
27
|
+
navHrefs: MenuNavHrefs;
|
|
28
|
+
onPaletteTrigger?: () => void;
|
|
29
|
+
tracking?: MenuTrackingCallbacks;
|
|
30
|
+
}
|
|
31
|
+
declare const Menu: FC<MenuProps>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Menu, MenuNavHrefs, MenuProps };
|