@sdxc/ui 2026.10.30 → 2026.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +187 -113
- package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/{behaviors → app/behaviors}/toaster.js +1 -1
- package/dist/{components → app}/chart.d.ts +1 -1
- package/dist/{components → app}/chart.js +18 -34
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.js +3 -3
- package/dist/{components → app}/empty.d.ts +1 -1
- package/dist/{components → app}/empty.js +11 -21
- package/dist/{components → app}/file-trigger.js +2 -2
- package/dist/{components → app}/grid-list.d.ts +1 -1
- package/dist/{components → app}/grid-list.js +16 -18
- package/dist/app/index.d.ts +41 -0
- package/dist/app/index.js +41 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/{components → app}/skeleton.js +3 -3
- package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
- package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
- package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
- package/dist/{components → app}/table.js +12 -15
- package/dist/{components → app}/toast.js +18 -24
- package/dist/{components → app}/toolbar.js +3 -3
- package/dist/{components → app}/tree.d.ts +1 -1
- package/dist/{components → app}/tree.js +10 -14
- package/dist/{utils → app/utils}/chart-path.d.ts +1 -1
- package/dist/{utils → app/utils}/chart-path.js +2 -2
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- package/dist/behaviors/index.d.ts +0 -5
- package/dist/behaviors/index.js +0 -5
- package/dist/{components → chat}/attachment.d.ts +1 -1
- package/dist/{components → chat}/attachment.js +17 -23
- package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
- package/dist/{components → chat}/bubble.js +14 -14
- package/dist/chat/index.d.ts +16 -0
- package/dist/chat/index.js +16 -0
- package/dist/{components → chat}/marker.js +6 -8
- package/dist/{components → chat}/message-scroller.d.ts +1 -1
- package/dist/{components → chat}/message-scroller.js +12 -18
- package/dist/{components → chat}/message.js +10 -12
- package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
- package/dist/{components → color}/color-area.js +7 -10
- package/dist/{components → color}/color-field.js +7 -6
- package/dist/{components → color}/color-picker.d.ts +1 -1
- package/dist/{components → color}/color-picker.js +9 -12
- package/dist/{components → color}/color-slider.js +10 -13
- package/dist/{components → color}/color-swatch-picker.js +4 -5
- package/dist/{components → color}/color-swatch.js +3 -4
- package/dist/{components → color}/color-wheel.js +5 -6
- package/dist/color/index.d.ts +21 -0
- package/dist/color/index.js +21 -0
- package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
- package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
- package/dist/{mixins → color/mixins}/color-preview.js +1 -1
- package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
- package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +19 -15
- package/dist/components/alert-dialog.js +5 -4
- package/dist/components/alert.js +10 -20
- package/dist/components/aspect-ratio.js +3 -4
- package/dist/components/avatar.d.ts +6 -6
- package/dist/components/avatar.js +56 -8
- package/dist/components/badge.js +11 -9
- package/dist/components/breadcrumbs.js +7 -9
- package/dist/components/button.d.ts +8 -6
- package/dist/components/button.js +22 -14
- package/dist/components/calendar.js +13 -24
- package/dist/components/card.js +9 -11
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +12 -20
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.js +10 -14
- package/dist/components/cta-group.d.ts +30 -14
- package/dist/components/cta-group.js +29 -10
- package/dist/components/date-field.js +2 -1
- package/dist/components/date-picker.js +4 -5
- package/dist/components/date-range-picker.js +3 -2
- package/dist/components/description.js +2 -1
- package/dist/components/dialog-dismiss.d.ts +18 -0
- package/dist/components/dialog-dismiss.js +15 -0
- package/dist/components/dialog.js +11 -15
- package/dist/components/disclosure.js +10 -14
- package/dist/components/drawer.js +3 -4
- package/dist/components/field-error.js +3 -3
- package/dist/components/form.js +2 -1
- package/dist/components/group.js +3 -3
- package/dist/components/header.js +3 -3
- package/dist/components/heading-scope.js +2 -1
- package/dist/components/heading.d.ts +4 -4
- package/dist/components/heading.js +7 -7
- package/dist/components/highlight.js +17 -12
- package/dist/components/hover-card.js +6 -8
- package/dist/components/image-placeholder.js +13 -19
- package/dist/components/index.d.ts +6 -38
- package/dist/components/index.js +6 -38
- package/dist/components/input.js +3 -4
- package/dist/components/item.js +10 -19
- package/dist/components/keyboard.js +3 -3
- package/dist/components/label.js +2 -1
- package/dist/components/link-button.d.ts +7 -5
- package/dist/components/link-button.js +16 -11
- package/dist/components/link.js +3 -4
- package/dist/components/listbox.js +6 -11
- package/dist/components/menu.js +5 -6
- package/dist/components/meter.js +5 -6
- package/dist/components/modal.js +9 -11
- package/dist/components/nav-link.d.ts +1 -1
- package/dist/components/nav-link.js +3 -4
- package/dist/components/navigation-menu.js +17 -23
- package/dist/components/number-field.js +8 -10
- package/dist/components/otp-field.js +2 -1
- package/dist/components/overlay-arrow.js +3 -4
- package/dist/components/pagination.js +8 -10
- package/dist/components/popover.js +3 -4
- package/dist/components/progress-bar.js +5 -5
- package/dist/components/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- package/dist/components/scroll-area.js +4 -5
- package/dist/components/search-field.js +8 -11
- package/dist/components/section.js +2 -1
- package/dist/components/select.js +10 -22
- package/dist/components/selection-indicator.js +3 -3
- package/dist/components/sentinel-row.js +3 -3
- package/dist/components/separator.js +3 -3
- package/dist/components/shared-element.js +2 -1
- package/dist/components/sheet.js +6 -7
- package/dist/components/sidebar.js +48 -76
- package/dist/components/slider.js +8 -10
- package/dist/components/spinner.js +3 -3
- package/dist/components/switch.js +3 -3
- package/dist/components/tabs.js +9 -12
- package/dist/components/tag-group.js +7 -9
- package/dist/components/text-field.js +2 -1
- package/dist/components/text.js +2 -1
- package/dist/components/textarea.js +3 -4
- package/dist/components/time-field.js +2 -1
- package/dist/components/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.js +128 -123
- package/dist/components/youtube-embed.js +2 -1
- package/dist/docs/anchor-heading.d.ts +41 -0
- package/dist/docs/anchor-heading.js +62 -0
- package/dist/docs/callout.d.ts +46 -0
- package/dist/docs/callout.js +61 -0
- package/dist/docs/code-block.d.ts +74 -0
- package/dist/docs/code-block.js +322 -0
- package/dist/docs/code-tabs-sync.d.ts +26 -0
- package/dist/docs/code-tabs-sync.js +12 -0
- package/dist/docs/code-tabs.d.ts +53 -0
- package/dist/docs/code-tabs.js +102 -0
- package/dist/docs/copy-button.d.ts +31 -0
- package/dist/docs/copy-button.js +49 -0
- package/dist/docs/docs-feedback.d.ts +55 -0
- package/dist/docs/docs-feedback.js +72 -0
- package/dist/docs/docs-footer.d.ts +40 -0
- package/dist/docs/docs-footer.js +45 -0
- package/dist/docs/docs-hub.d.ts +93 -0
- package/dist/docs/docs-hub.js +142 -0
- package/dist/docs/docs-layout.d.ts +90 -0
- package/dist/docs/docs-layout.js +166 -0
- package/dist/docs/docs-nav-tools.d.ts +25 -0
- package/dist/docs/docs-nav-tools.js +14 -0
- package/dist/docs/docs-nav.d.ts +53 -0
- package/dist/docs/docs-nav.js +76 -0
- package/dist/docs/docs-not-found.d.ts +68 -0
- package/dist/docs/docs-not-found.js +100 -0
- package/dist/docs/docs-page-header.d.ts +55 -0
- package/dist/docs/docs-page-header.js +54 -0
- package/dist/docs/docs-pager.d.ts +46 -0
- package/dist/docs/docs-pager.js +74 -0
- package/dist/docs/file-tree.d.ts +57 -0
- package/dist/docs/file-tree.js +142 -0
- package/dist/docs/index.d.ts +38 -0
- package/dist/docs/index.js +38 -0
- package/dist/docs/install-command.d.ts +54 -0
- package/dist/docs/install-command.js +33 -0
- package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
- package/dist/docs/mixins/code-tabs-sync.js +137 -0
- package/dist/docs/mixins/copy-feedback.d.ts +25 -0
- package/dist/docs/mixins/copy-feedback.js +49 -0
- package/dist/docs/mixins/copy-from-url.d.ts +27 -0
- package/dist/docs/mixins/copy-from-url.js +95 -0
- package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
- package/dist/docs/mixins/docs-nav-tools.js +97 -0
- package/dist/docs/mixins/toc-spy.d.ts +30 -0
- package/dist/docs/mixins/toc-spy.js +165 -0
- package/dist/docs/next-steps.d.ts +45 -0
- package/dist/docs/next-steps.js +79 -0
- package/dist/docs/page-actions.d.ts +77 -0
- package/dist/docs/page-actions.js +78 -0
- package/dist/docs/plan-notice.d.ts +28 -0
- package/dist/docs/plan-notice.js +33 -0
- package/dist/docs/props-table.d.ts +64 -0
- package/dist/docs/props-table.js +147 -0
- package/dist/docs/steps.d.ts +51 -0
- package/dist/docs/steps.js +112 -0
- package/dist/docs/table-of-contents.d.ts +49 -0
- package/dist/docs/table-of-contents.js +139 -0
- package/dist/docs/ui-label.d.ts +51 -0
- package/dist/docs/ui-label.js +64 -0
- package/dist/docs/utils/docs-tree.d.ts +81 -0
- package/dist/docs/utils/docs-tree.js +57 -0
- package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
- package/dist/docs/utils/reveal-in-scroller.js +43 -0
- package/dist/landing/accent-text.d.ts +47 -0
- package/dist/landing/accent-text.js +107 -0
- package/dist/landing/animations/entrance.d.ts +40 -0
- package/dist/landing/animations/entrance.js +52 -0
- package/dist/landing/announcement-chip.d.ts +45 -0
- package/dist/landing/announcement-chip.js +36 -0
- package/dist/landing/author-band.d.ts +78 -0
- package/dist/landing/author-band.js +190 -0
- package/dist/landing/bento.d.ts +99 -0
- package/dist/landing/bento.js +138 -0
- package/dist/landing/changelog-strip.d.ts +74 -0
- package/dist/landing/changelog-strip.js +201 -0
- package/dist/{patterns → landing}/check-row.js +5 -7
- package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
- package/dist/{patterns → landing}/closing-cta.js +8 -8
- package/dist/landing/code-stage.d.ts +93 -0
- package/dist/landing/code-stage.js +434 -0
- package/dist/landing/crosshair.d.ts +44 -0
- package/dist/landing/crosshair.js +48 -0
- package/dist/landing/curriculum.d.ts +79 -0
- package/dist/landing/curriculum.js +194 -0
- package/dist/landing/drawn-chart.d.ts +74 -0
- package/dist/landing/drawn-chart.js +377 -0
- package/dist/landing/event-ticker.d.ts +71 -0
- package/dist/landing/event-ticker.js +331 -0
- package/dist/landing/fan-out-diagram.d.ts +70 -0
- package/dist/landing/fan-out-diagram.js +481 -0
- package/dist/{patterns → landing}/faq-band.d.ts +5 -5
- package/dist/{patterns → landing}/faq-band.js +13 -14
- package/dist/landing/feature-band.d.ts +108 -0
- package/dist/landing/feature-band.js +67 -0
- package/dist/landing/feature.d.ts +148 -0
- package/dist/landing/feature.js +219 -0
- package/dist/landing/flow-diagram.d.ts +62 -0
- package/dist/landing/flow-diagram.js +240 -0
- package/dist/{patterns → landing}/icon-well.d.ts +17 -7
- package/dist/landing/icon-well.js +31 -0
- package/dist/landing/index.d.ts +52 -0
- package/dist/landing/index.js +52 -0
- package/dist/{patterns → landing}/install-tabs.js +4 -5
- package/dist/landing/landing-header.d.ts +103 -0
- package/dist/landing/landing-header.js +110 -0
- package/dist/landing/landing-hero.d.ts +119 -0
- package/dist/landing/landing-hero.js +172 -0
- package/dist/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
- package/dist/landing/landing-section.js +183 -0
- package/dist/landing/logo-cloud.d.ts +56 -0
- package/dist/landing/logo-cloud.js +160 -0
- package/dist/landing/logo-sentence.d.ts +38 -0
- package/dist/landing/logo-sentence.js +51 -0
- package/dist/landing/marquee.d.ts +44 -0
- package/dist/landing/marquee.js +97 -0
- package/dist/landing/motion-loop.d.ts +43 -0
- package/dist/landing/motion-loop.js +42 -0
- package/dist/landing/pricing-band.d.ts +94 -0
- package/dist/landing/pricing-band.js +151 -0
- package/dist/landing/product-frame.d.ts +108 -0
- package/dist/landing/product-frame.js +202 -0
- package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
- package/dist/{patterns → landing}/proof-strip.js +3 -3
- package/dist/landing/rails.d.ts +45 -0
- package/dist/landing/rails.js +69 -0
- package/dist/landing/rotating-text.d.ts +44 -0
- package/dist/landing/rotating-text.js +67 -0
- package/dist/landing/segmented-stage.d.ts +75 -0
- package/dist/landing/segmented-stage.js +141 -0
- package/dist/landing/sequence-diagram.d.ts +65 -0
- package/dist/landing/sequence-diagram.js +348 -0
- package/dist/landing/site-footer.d.ts +100 -0
- package/dist/landing/site-footer.js +274 -0
- package/dist/landing/site-header.d.ts +126 -0
- package/dist/landing/site-header.js +595 -0
- package/dist/{components → landing}/split.d.ts +12 -5
- package/dist/{components → landing}/split.js +26 -18
- package/dist/landing/sponsor-wall.d.ts +81 -0
- package/dist/landing/sponsor-wall.js +241 -0
- package/dist/{components → landing}/stat-strip.d.ts +31 -7
- package/dist/landing/stat-strip.js +105 -0
- package/dist/landing/step-list.d.ts +73 -0
- package/dist/landing/step-list.js +182 -0
- package/dist/landing/styles/card-grid.d.ts +115 -0
- package/dist/landing/styles/card-grid.js +295 -0
- package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
- package/dist/landing/tabbed-stage.js +233 -0
- package/dist/landing/testimonial-band.d.ts +110 -0
- package/dist/landing/testimonial-band.js +164 -0
- package/dist/landing/typed-terminal.d.ts +62 -0
- package/dist/landing/typed-terminal.js +233 -0
- package/dist/landing/utils/pause-toggle.d.ts +37 -0
- package/dist/landing/utils/pause-toggle.js +71 -0
- package/dist/mixins/copy-to-clipboard.d.ts +6 -0
- package/dist/mixins/copy-to-clipboard.js +17 -1
- package/dist/mixins/dialog-dismiss.d.ts +21 -0
- package/dist/mixins/dialog-dismiss.js +62 -0
- package/dist/mixins/index.d.ts +2 -15
- package/dist/mixins/index.js +2 -15
- package/dist/styles/index.d.ts +2 -5
- package/dist/styles/index.js +2 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +1 -5
- package/dist/utils/index.js +1 -5
- package/package.json +14 -4
- package/src/theme.css +87 -22
- package/dist/components/feature.d.ts +0 -102
- package/dist/components/feature.js +0 -150
- package/dist/components/logo-cloud.d.ts +0 -42
- package/dist/components/logo-cloud.js +0 -41
- package/dist/components/marketing-header.d.ts +0 -71
- package/dist/components/marketing-header.js +0 -81
- package/dist/components/marketing-section.js +0 -117
- package/dist/components/stat-strip.js +0 -65
- package/dist/patterns/accent-text.d.ts +0 -30
- package/dist/patterns/accent-text.js +0 -17
- package/dist/patterns/announcement-chip.d.ts +0 -41
- package/dist/patterns/announcement-chip.js +0 -49
- package/dist/patterns/bento.d.ts +0 -68
- package/dist/patterns/bento.js +0 -94
- package/dist/patterns/code-stage.d.ts +0 -63
- package/dist/patterns/code-stage.js +0 -82
- package/dist/patterns/feature-band.d.ts +0 -85
- package/dist/patterns/feature-band.js +0 -50
- package/dist/patterns/icon-well.js +0 -38
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.js +0 -23
- package/dist/patterns/landing-hero.d.ts +0 -93
- package/dist/patterns/landing-hero.js +0 -126
- package/dist/patterns/product-frame.d.ts +0 -60
- package/dist/patterns/product-frame.js +0 -70
- package/dist/patterns/step-list.d.ts +0 -47
- package/dist/patterns/step-list.js +0 -85
- package/dist/patterns/tabbed-stage.js +0 -77
- package/dist/styles/marketing.d.ts +0 -120
- package/dist/styles/marketing.js +0 -225
- package/dist/utils/semantic-color-panel.d.ts +0 -35
- package/dist/utils/semantic-color-panel.js +0 -28
- /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
- /package/dist/{behaviors → app/behaviors}/toaster.d.ts +0 -0
- /package/dist/{components → app}/drop-indicator.d.ts +0 -0
- /package/dist/{components → app}/drop-zone.d.ts +0 -0
- /package/dist/{components → app}/file-trigger.d.ts +0 -0
- /package/dist/{components → app}/menubar.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
- /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
- /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
- /package/dist/{components → app}/resizable.d.ts +0 -0
- /package/dist/{components → app}/shortcut-list.d.ts +0 -0
- /package/dist/{components → app}/skeleton.d.ts +0 -0
- /package/dist/{styles → app/styles}/chart-palette.js +0 -0
- /package/dist/{styles → app/styles}/graphic-host.js +0 -0
- /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
- /package/dist/{components → app}/table.d.ts +0 -0
- /package/dist/{components → app}/toast.d.ts +0 -0
- /package/dist/{components → app}/toolbar.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-marker-indices.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-marker-indices.js +0 -0
- /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
- /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
- /package/dist/{components → chat}/bubble.d.ts +0 -0
- /package/dist/{components → chat}/marker.d.ts +0 -0
- /package/dist/{components → chat}/message.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
- /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
- /package/dist/{components → color}/color-area.d.ts +0 -0
- /package/dist/{components → color}/color-field.d.ts +0 -0
- /package/dist/{components → color}/color-slider.d.ts +0 -0
- /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
- /package/dist/{components → color}/color-swatch.d.ts +0 -0
- /package/dist/{components → color}/color-wheel.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
- /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
- /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
- /package/dist/{patterns → landing}/check-row.d.ts +0 -0
- /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "remix/component/jsx-runtime";
|
|
2
|
+
import { CheckIcon } from "@sdxc/icons";
|
|
3
|
+
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
4
|
+
import { keyframes } from "@sdxc/u/animation";
|
|
5
|
+
import { raw } from "@sdxc/u/general";
|
|
6
|
+
import { motionSafe } from "@sdxc/u/responsive";
|
|
7
|
+
import { when } from "@sdxc/u/state";
|
|
8
|
+
import { landingSurface } from "../styles/landing.js";
|
|
9
|
+
import { MotionLoop } from "./motion-loop.js";
|
|
10
|
+
/** Length of one loop: the messages play, the outcome holds, then everything resets. */
|
|
11
|
+
const CYCLE_SECONDS = 10;
|
|
12
|
+
/** Percent of the cycle at which the first message starts. */
|
|
13
|
+
const FIRST_MESSAGE_AT = 8;
|
|
14
|
+
/** Most percent of the cycle between one message starting and the next. */
|
|
15
|
+
const MAX_MESSAGE_GAP = 14;
|
|
16
|
+
/** Percent of the cycle the messages share, so a long exchange still holds its outcome. */
|
|
17
|
+
const MESSAGES_SPAN = 70;
|
|
18
|
+
/** Share of a message's slot its arrow takes to draw; the arrowhead lands when it ends. */
|
|
19
|
+
const DRAW_SHARE = 0.6;
|
|
20
|
+
/** Percent of the cycle at which every drawn element clears for the next loop. */
|
|
21
|
+
const RESET_AT = 94;
|
|
22
|
+
/**
|
|
23
|
+
* Space above the actor row for the pause toggle pinned to the surface's top corner: the
|
|
24
|
+
* toggle's inset and size plus a gap, so the last actor's label never runs under it.
|
|
25
|
+
*/
|
|
26
|
+
const PAUSE_CLEARANCE = "3.25rem";
|
|
27
|
+
/** Block size of an arrow's track, which the arrowhead fills. */
|
|
28
|
+
const ARROW_HEIGHT = "0.625rem";
|
|
29
|
+
/**
|
|
30
|
+
* Renders the exchange on a raised surface inside a {@link MotionLoop}: an actor row, a
|
|
31
|
+
* lifeline per actor, and one list item per message whose arrow runs between the two
|
|
32
|
+
* lifelines' centres. Without motion every arrow shows drawn, so the static picture is the
|
|
33
|
+
* finished exchange. Two diagrams with the same message count share keyframes.
|
|
34
|
+
*
|
|
35
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
36
|
+
* @returns The render function producing the diagram's markup.
|
|
37
|
+
* @example
|
|
38
|
+
* <SequenceDiagram
|
|
39
|
+
* aria-label="A PKCE sign-in"
|
|
40
|
+
* actors={[{ name: "Browser" }, { name: "Your app" }]}
|
|
41
|
+
* messages={[{ from: 0, to: 1, label: "Open /login" }]}
|
|
42
|
+
* outcome="Signed in"
|
|
43
|
+
* />
|
|
44
|
+
*/
|
|
45
|
+
export function SequenceDiagram(handle) {
|
|
46
|
+
return () => {
|
|
47
|
+
let { "aria-label": label, actors, footnote, messages, mix, outcome, pauseLabel, ...rest } = handle.props;
|
|
48
|
+
let timing = timingFor(messages.length);
|
|
49
|
+
let columns = `repeat(${actors.length}, minmax(0, 1fr))`;
|
|
50
|
+
return (_jsx(MotionLoop, { ...rest, pauseLabel: pauseLabel, placement: "start-end", mix: mix, children: _jsxs("div", { "data-slot": "sequence-diagram", mix: [
|
|
51
|
+
landingSurface(),
|
|
52
|
+
raw({
|
|
53
|
+
display: "grid",
|
|
54
|
+
gap: "1.25rem",
|
|
55
|
+
padding: "clamp(1rem, 4cqi, 2rem)",
|
|
56
|
+
paddingBlockStart: PAUSE_CLEARANCE,
|
|
57
|
+
}),
|
|
58
|
+
], children: [_jsx("div", { "data-slot": "sequence-diagram-actors", mix: [raw({ display: "grid", gridTemplateColumns: columns })], children: actors.map((actor, index) => (_jsxs("div", { mix: [actorCell()], children: [actor.icon === undefined ? null : (_jsx("span", { "aria-hidden": "true", mix: [actorIcon()], children: actor.icon })), _jsx("span", { mix: [actorName()], children: actor.name })] }, index))) }), _jsxs("div", { mix: [raw({ position: "relative" })], children: [_jsx("div", { "aria-hidden": "true", mix: [
|
|
59
|
+
raw({
|
|
60
|
+
position: "absolute",
|
|
61
|
+
inset: "-1.25rem 0 0",
|
|
62
|
+
display: "grid",
|
|
63
|
+
gridTemplateColumns: columns,
|
|
64
|
+
}),
|
|
65
|
+
], children: actors.map((_, index) => (_jsx("span", { mix: [raw({ position: "relative" })], children: _jsx("span", { "data-slot": "sequence-diagram-lifeline", mix: [lifeline()] }) }, index))) }), _jsx("ol", { "aria-label": label, mix: [
|
|
66
|
+
raw({
|
|
67
|
+
position: "relative",
|
|
68
|
+
display: "grid",
|
|
69
|
+
gap: "1rem",
|
|
70
|
+
margin: "0",
|
|
71
|
+
padding: "0",
|
|
72
|
+
listStyle: "none",
|
|
73
|
+
}),
|
|
74
|
+
], children: messages.map((message, index) => (_jsxs("li", { mix: [
|
|
75
|
+
raw({
|
|
76
|
+
position: "relative",
|
|
77
|
+
display: "grid",
|
|
78
|
+
gridTemplateColumns: columns,
|
|
79
|
+
}),
|
|
80
|
+
], children: [_jsxs("span", { mix: [visuallyHidden()], children: [actors[message.from]?.name, message.from === message.to ? null : _jsxs(_Fragment, { children: [" \u2192 ", actors[message.to]?.name] }), ":", " "] }), _jsx(MessageRow, { message: message, timing: timing, index: index })] }, index))) })] }), outcome === undefined && footnote === undefined ? null : (_jsxs("div", { "data-slot": "sequence-diagram-footer", mix: [
|
|
81
|
+
raw({
|
|
82
|
+
display: "flex",
|
|
83
|
+
flexWrap: "wrap",
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
justifyContent: "space-between",
|
|
86
|
+
gap: "0.75rem",
|
|
87
|
+
paddingBlockStart: "1.25rem",
|
|
88
|
+
borderBlockStart: "1px solid var(--ui-landing-hairline, var(--ui-neutral-border))",
|
|
89
|
+
}),
|
|
90
|
+
], children: [outcome === undefined ? null : (_jsxs("span", { "data-slot": "sequence-diagram-outcome", mix: [outcomeBadge(timing)], children: [_jsx(CheckIcon, { size: 14, strokeWidth: 2.5, "aria-hidden": "true" }), outcome] })), footnote === undefined ? null : (_jsx("span", { mix: [
|
|
91
|
+
detail(),
|
|
92
|
+
raw({ display: "inline-flex", alignItems: "center", gap: "0.375rem" }),
|
|
93
|
+
], children: footnote }))] }))] }) }));
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/** Spreads `count` messages over {@link MESSAGES_SPAN}, never further apart than the max gap. */
|
|
97
|
+
function timingFor(count) {
|
|
98
|
+
return {
|
|
99
|
+
count,
|
|
100
|
+
gap: count > 0 ? Math.min(MAX_MESSAGE_GAP, MESSAGES_SPAN / count) : MAX_MESSAGE_GAP,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/** Percent of the cycle at which message `index` starts; `count` gives when the last ends. */
|
|
104
|
+
function startsAt(timing, index) {
|
|
105
|
+
return FIRST_MESSAGE_AT + index * timing.gap;
|
|
106
|
+
}
|
|
107
|
+
/** Percent of the cycle at which message `index`'s arrow finishes drawing. */
|
|
108
|
+
function landsAt(timing, index) {
|
|
109
|
+
return startsAt(timing, index) + timing.gap * DRAW_SHARE;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A message's label, arrow and code, spanning the columns from sender to receiver. The
|
|
113
|
+
* arrow's track is inset by half a column on each side, so it starts and ends on the two
|
|
114
|
+
* lifelines' centres however wide the card is. A note to self is a pill on one lifeline.
|
|
115
|
+
*/
|
|
116
|
+
function MessageRow(handle) {
|
|
117
|
+
return () => {
|
|
118
|
+
let { index, message, timing } = handle.props;
|
|
119
|
+
let first = Math.min(message.from, message.to);
|
|
120
|
+
let last = Math.max(message.from, message.to);
|
|
121
|
+
let spanned = last - first + 1;
|
|
122
|
+
let text = textFade(timing, index);
|
|
123
|
+
let code = message.code === undefined ? null : (_jsx("code", { mix: [
|
|
124
|
+
detail(),
|
|
125
|
+
raw({ fontFamily: "var(--ui-font-mono)", paddingInline: "0.25rem" }),
|
|
126
|
+
text,
|
|
127
|
+
], children: message.code }));
|
|
128
|
+
if (message.from === message.to) {
|
|
129
|
+
return (_jsxs("span", { "data-slot": "sequence-diagram-message", mix: [messageCell(first, last), raw({ justifyItems: "center" })], children: [_jsx("span", { "data-slot": "sequence-diagram-note", mix: [notePill(), noteFade(timing, index)], children: message.label }), code] }));
|
|
130
|
+
}
|
|
131
|
+
let forward = message.to > message.from;
|
|
132
|
+
let inset = `calc(100% / ${2 * spanned})`;
|
|
133
|
+
return (_jsxs("span", { "data-slot": "sequence-diagram-message", mix: [messageCell(first, last)], children: [_jsx("span", { mix: [caption(), text], children: message.label }), _jsxs("span", { "aria-hidden": "true", "data-slot": "sequence-diagram-arrow", "data-direction": forward ? "end" : "start", mix: [
|
|
134
|
+
raw({
|
|
135
|
+
position: "relative",
|
|
136
|
+
display: "block",
|
|
137
|
+
blockSize: ARROW_HEIGHT,
|
|
138
|
+
marginInline: inset,
|
|
139
|
+
color: "var(--ui-brand-fg)",
|
|
140
|
+
}),
|
|
141
|
+
], children: [_jsx("span", { mix: [arrowLine(timing, index, forward)] }), _jsx("svg", { viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", mix: [arrowHead(timing, index, forward)], children: _jsx("path", { d: "M4 1 L9 5 L4 9" }) })] }), code] }));
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/** The animation declarations every drawn element shares: one linear loop of the cycle. */
|
|
145
|
+
function loop(name) {
|
|
146
|
+
return {
|
|
147
|
+
animationName: name,
|
|
148
|
+
animationDuration: `${CYCLE_SECONDS}s`,
|
|
149
|
+
animationTimingFunction: "linear",
|
|
150
|
+
animationIterationCount: "infinite",
|
|
151
|
+
animationFillMode: "both",
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Keyframe stops that hold `off` until `at`, switch to `on`, and go back to `off` at
|
|
156
|
+
* {@link RESET_AT}, so every element of the exchange resets together.
|
|
157
|
+
*/
|
|
158
|
+
function litFrames(at, off, on) {
|
|
159
|
+
return {
|
|
160
|
+
"0%": off,
|
|
161
|
+
[`${at - 1}%`]: off,
|
|
162
|
+
[`${at}%`]: on,
|
|
163
|
+
[`${RESET_AT}%`]: on,
|
|
164
|
+
[`${RESET_AT + 2}%`]: off,
|
|
165
|
+
"100%": off,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/** The grid area a message spans, from the sender's column to the receiver's. */
|
|
169
|
+
function messageCell(first, last) {
|
|
170
|
+
return raw({
|
|
171
|
+
gridColumn: `${first + 1} / ${last + 2}`,
|
|
172
|
+
display: "grid",
|
|
173
|
+
gap: "0.25rem",
|
|
174
|
+
minInlineSize: "0",
|
|
175
|
+
textAlign: "center",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/** A message's label and code, which fade in as its arrow starts. */
|
|
179
|
+
function textFade(timing, index) {
|
|
180
|
+
let name = `ui-sequence-diagram-text-${timing.count}-${index}`;
|
|
181
|
+
return [
|
|
182
|
+
keyframes(name, litFrames(startsAt(timing, index), { opacity: "0" }, { opacity: "1" })),
|
|
183
|
+
motionSafe(raw(loop(name))),
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* An arrow's shaft, drawn out from the sender's side of the track. `forward` arrows point
|
|
188
|
+
* toward the inline end, so the origin flips on right-to-left pages along with the columns.
|
|
189
|
+
* At the reset it fades out at full length with its head, so a shaft never pulls away
|
|
190
|
+
* from the arrowhead it ends in.
|
|
191
|
+
*/
|
|
192
|
+
function arrowLine(timing, index, forward) {
|
|
193
|
+
let name = `ui-sequence-diagram-arrow-${timing.count}-${index}`;
|
|
194
|
+
let from = startsAt(timing, index);
|
|
195
|
+
let to = landsAt(timing, index);
|
|
196
|
+
return [
|
|
197
|
+
keyframes(name, {
|
|
198
|
+
"0%": { transform: "scaleX(0)", opacity: "1" },
|
|
199
|
+
[`${from}%`]: { transform: "scaleX(0)", opacity: "1" },
|
|
200
|
+
[`${to}%`]: { transform: "scaleX(1)", opacity: "1" },
|
|
201
|
+
[`${RESET_AT}%`]: { transform: "scaleX(1)", opacity: "1" },
|
|
202
|
+
[`${RESET_AT + 2}%`]: { transform: "scaleX(1)", opacity: "0" },
|
|
203
|
+
"100%": { transform: "scaleX(1)", opacity: "0" },
|
|
204
|
+
}),
|
|
205
|
+
raw({
|
|
206
|
+
position: "absolute",
|
|
207
|
+
insetInline: "0",
|
|
208
|
+
insetBlockStart: `calc(${ARROW_HEIGHT} / 2 - 1px)`,
|
|
209
|
+
blockSize: "2px",
|
|
210
|
+
borderRadius: "1px",
|
|
211
|
+
backgroundColor: "currentColor",
|
|
212
|
+
transformOrigin: forward ? "left" : "right",
|
|
213
|
+
}),
|
|
214
|
+
when("&:dir(rtl)", raw({ transformOrigin: forward ? "right" : "left" })),
|
|
215
|
+
motionSafe(raw(loop(name))),
|
|
216
|
+
];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* An arrow's head at the receiver's lifeline, shown once the shaft reaches it. It sits on
|
|
220
|
+
* the receiver's logical side and turns to face it in either writing direction.
|
|
221
|
+
*/
|
|
222
|
+
function arrowHead(timing, index, forward) {
|
|
223
|
+
let name = `ui-sequence-diagram-head-${timing.count}-${index}`;
|
|
224
|
+
return [
|
|
225
|
+
keyframes(name, litFrames(landsAt(timing, index), { opacity: "0" }, { opacity: "1" })),
|
|
226
|
+
raw({
|
|
227
|
+
position: "absolute",
|
|
228
|
+
insetBlockStart: "0",
|
|
229
|
+
[forward ? "insetInlineEnd" : "insetInlineStart"]: "-1px",
|
|
230
|
+
inlineSize: ARROW_HEIGHT,
|
|
231
|
+
blockSize: ARROW_HEIGHT,
|
|
232
|
+
transform: forward ? "none" : "scaleX(-1)",
|
|
233
|
+
}),
|
|
234
|
+
when("&:dir(rtl)", raw({ transform: forward ? "scaleX(-1)" : "none" })),
|
|
235
|
+
motionSafe(raw(loop(name))),
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
/** A note to self, which pops onto its lifeline when its turn comes. */
|
|
239
|
+
function noteFade(timing, index) {
|
|
240
|
+
let name = `ui-sequence-diagram-note-${timing.count}-${index}`;
|
|
241
|
+
return [
|
|
242
|
+
keyframes(name, litFrames(startsAt(timing, index), { opacity: "0", transform: "scale(0.9)" }, { opacity: "1", transform: "none" })),
|
|
243
|
+
motionSafe(raw(loop(name))),
|
|
244
|
+
];
|
|
245
|
+
}
|
|
246
|
+
/** The pill a note to self sits in, opaque so its lifeline passes behind it. */
|
|
247
|
+
function notePill() {
|
|
248
|
+
return raw({
|
|
249
|
+
maxInlineSize: "100%",
|
|
250
|
+
paddingInline: "0.5rem",
|
|
251
|
+
paddingBlock: "0.125rem",
|
|
252
|
+
borderRadius: "0.75rem",
|
|
253
|
+
border: "1px solid var(--ui-brand-border)",
|
|
254
|
+
backgroundColor: "var(--ui-bg)",
|
|
255
|
+
fontSize: "0.8125rem",
|
|
256
|
+
lineHeight: "1.25rem",
|
|
257
|
+
fontWeight: "600",
|
|
258
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
259
|
+
overflowWrap: "anywhere",
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/** A dashed line down the middle of an actor's column. */
|
|
263
|
+
function lifeline() {
|
|
264
|
+
return raw({
|
|
265
|
+
position: "absolute",
|
|
266
|
+
insetBlock: "0",
|
|
267
|
+
insetInlineStart: "calc(50% - 0.5px)",
|
|
268
|
+
inlineSize: "0",
|
|
269
|
+
borderInlineStart: "1px dashed var(--ui-neutral-border)",
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/** An actor's cell in the header row: its icon over its name, centred on its lifeline. */
|
|
273
|
+
function actorCell() {
|
|
274
|
+
return raw({
|
|
275
|
+
display: "grid",
|
|
276
|
+
justifyItems: "center",
|
|
277
|
+
alignContent: "end",
|
|
278
|
+
gap: "0.375rem",
|
|
279
|
+
minInlineSize: "0",
|
|
280
|
+
paddingInline: "0.125rem",
|
|
281
|
+
textAlign: "center",
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/** The round well an actor's icon sits in. */
|
|
285
|
+
function actorIcon() {
|
|
286
|
+
return raw({
|
|
287
|
+
display: "grid",
|
|
288
|
+
placeItems: "center",
|
|
289
|
+
inlineSize: "1.75rem",
|
|
290
|
+
blockSize: "1.75rem",
|
|
291
|
+
borderRadius: "9999px",
|
|
292
|
+
border: "1px solid var(--ui-brand-border)",
|
|
293
|
+
backgroundColor: "var(--ui-bg)",
|
|
294
|
+
color: "var(--ui-brand-fg)",
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/** An actor's name in the heading ink. */
|
|
298
|
+
function actorName() {
|
|
299
|
+
return raw({
|
|
300
|
+
maxInlineSize: "100%",
|
|
301
|
+
fontSize: "0.75rem",
|
|
302
|
+
lineHeight: "1.125rem",
|
|
303
|
+
fontWeight: "600",
|
|
304
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
305
|
+
overflowWrap: "anywhere",
|
|
306
|
+
hyphens: "auto",
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/** The exchange's outcome, which appears after the last message lands. */
|
|
310
|
+
function outcomeBadge(timing) {
|
|
311
|
+
let name = `ui-sequence-diagram-outcome-${timing.count}`;
|
|
312
|
+
return [
|
|
313
|
+
keyframes(name, litFrames(startsAt(timing, timing.count), { opacity: "0", transform: "translateY(4px)" }, { opacity: "1", transform: "none" })),
|
|
314
|
+
raw({
|
|
315
|
+
display: "inline-flex",
|
|
316
|
+
alignItems: "center",
|
|
317
|
+
gap: "0.375rem",
|
|
318
|
+
paddingInline: "0.625rem",
|
|
319
|
+
paddingBlock: "0.25rem",
|
|
320
|
+
borderRadius: "9999px",
|
|
321
|
+
fontSize: "0.8125rem",
|
|
322
|
+
fontWeight: "600",
|
|
323
|
+
color: "var(--ui-success-fg)",
|
|
324
|
+
backgroundColor: "var(--ui-success-bg-tint)",
|
|
325
|
+
}),
|
|
326
|
+
motionSafe(raw(loop(name))),
|
|
327
|
+
];
|
|
328
|
+
}
|
|
329
|
+
/** A message's label in the heading ink, wrapping within the columns it spans. */
|
|
330
|
+
function caption() {
|
|
331
|
+
return raw({
|
|
332
|
+
paddingInline: "0.25rem",
|
|
333
|
+
fontSize: "0.8125rem",
|
|
334
|
+
lineHeight: "1.25rem",
|
|
335
|
+
fontWeight: "600",
|
|
336
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
337
|
+
overflowWrap: "anywhere",
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
/** A message's code line, and the footnote. */
|
|
341
|
+
function detail() {
|
|
342
|
+
return raw({
|
|
343
|
+
fontSize: "0.75rem",
|
|
344
|
+
lineHeight: "1.125rem",
|
|
345
|
+
color: "var(--ui-neutral-fg-muted)",
|
|
346
|
+
overflowWrap: "anywhere",
|
|
347
|
+
});
|
|
348
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Site footer for landing and product pages: a brand block, titled link columns that
|
|
3
|
+
* never leave a short last row, optional newsletter and social slots, a legal row and a
|
|
4
|
+
* full-width brand wordmark that closes the page.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
import type { HeadingLevel } from "../components/heading-scope.js";
|
|
11
|
+
import type { LinkPrefetch } from "../utils/link-prefetch.js";
|
|
12
|
+
/**
|
|
13
|
+
* Prop types for {@link SiteFooter}.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace SiteFooter {
|
|
16
|
+
/**
|
|
17
|
+
* Where the newsletter slot sits: under the tagline in the brand block, or as a full
|
|
18
|
+
* band above the brand block and the columns.
|
|
19
|
+
*/
|
|
20
|
+
type NewsletterPlacement = "column" | "band";
|
|
21
|
+
/** One destination in a link column. */
|
|
22
|
+
interface Link {
|
|
23
|
+
/** Visible link text. */
|
|
24
|
+
label: RemixNode;
|
|
25
|
+
/** Destination URL. */
|
|
26
|
+
href: string;
|
|
27
|
+
}
|
|
28
|
+
/** A titled group of links; the title renders as a heading one level below the footer's. */
|
|
29
|
+
interface Column {
|
|
30
|
+
/** Column heading, such as "Product". */
|
|
31
|
+
title: RemixNode;
|
|
32
|
+
/** Links listed under the title, in order. */
|
|
33
|
+
links: Link[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Props accepted by {@link SiteFooter}.
|
|
37
|
+
*/
|
|
38
|
+
interface Props extends Omit<TagProps<"footer">, "children"> {
|
|
39
|
+
/** The brand mark, usually a home link wrapping the logo. */
|
|
40
|
+
brand?: RemixNode;
|
|
41
|
+
/** One or two lines under the brand mark in the muted ink. */
|
|
42
|
+
tagline?: RemixNode;
|
|
43
|
+
/** Link columns; any count lays out without a short last row. */
|
|
44
|
+
columns: Column[];
|
|
45
|
+
/** A newsletter form the page supplies, placed by `newsletterPlacement`. */
|
|
46
|
+
newsletter?: RemixNode;
|
|
47
|
+
/** Defaults to {@link DEFAULT_NEWSLETTER_PLACEMENT}. */
|
|
48
|
+
newsletterPlacement?: NewsletterPlacement;
|
|
49
|
+
/**
|
|
50
|
+
* Icon links with an `aria-label` each. The footer sizes every direct child to a
|
|
51
|
+
* 1.25rem glyph inside a 44px hit area on a phone, 36px from the `md` container.
|
|
52
|
+
*/
|
|
53
|
+
social?: RemixNode;
|
|
54
|
+
/** The bottom row: copyright and legal links, with `social` at its inline end. */
|
|
55
|
+
legal?: RemixNode;
|
|
56
|
+
/**
|
|
57
|
+
* A brand wordmark, usually an SVG, drawn full width in the brand ink as the last
|
|
58
|
+
* thing on the page and hidden from assistive technology.
|
|
59
|
+
*/
|
|
60
|
+
wordmark?: RemixNode;
|
|
61
|
+
/** Visually hidden heading naming the footer in the outline. Defaults to {@link DEFAULT_LABEL}. */
|
|
62
|
+
label?: RemixNode;
|
|
63
|
+
/**
|
|
64
|
+
* Level of that hidden heading; column titles render one below it. Defaults to one
|
|
65
|
+
* below the ambient `HeadingScope`, so a footer on a bare page opens with `<h2>`.
|
|
66
|
+
*/
|
|
67
|
+
level?: HeadingLevel;
|
|
68
|
+
/** Draws the hairline along the footer's top edge. Defaults to `true`. */
|
|
69
|
+
ruled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* When the column links start loading their pages. Defaults to `"none"`; `"intent"`
|
|
72
|
+
* warms a destination as the visitor hovers or focuses it.
|
|
73
|
+
*/
|
|
74
|
+
prefetch?: LinkPrefetch;
|
|
75
|
+
}
|
|
76
|
+
/** Props accepted by the internal column renderer. */
|
|
77
|
+
interface ColumnProps {
|
|
78
|
+
/** The column to render. */
|
|
79
|
+
column: Column;
|
|
80
|
+
/** Prefetch mode for the column's links. */
|
|
81
|
+
prefetch?: LinkPrefetch;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Renders the page footer: a measured column holding an optional newsletter band, the
|
|
86
|
+
* brand block beside or above the link columns, the legal row, then the wordmark. Column
|
|
87
|
+
* counts per row derive from `columns.length` at every container step, so 3 or 5
|
|
88
|
+
* columns never strand one alone on a row.
|
|
89
|
+
*
|
|
90
|
+
* @param handle Runtime handle carrying the host `<footer>`'s props.
|
|
91
|
+
* @returns The render function producing the footer's markup.
|
|
92
|
+
* @example
|
|
93
|
+
* <SiteFooter
|
|
94
|
+
* brand={<a href="/" aria-label="Keel home"><KeelLogo /></a>}
|
|
95
|
+
* tagline={t("footer.tagline")}
|
|
96
|
+
* columns={[{ title: t("footer.product"), links: [{ label: t("footer.pricing"), href: "/pricing" }] }]}
|
|
97
|
+
* legal={<p>© 2026 Keel</p>}
|
|
98
|
+
* />
|
|
99
|
+
*/
|
|
100
|
+
export declare function SiteFooter(handle: Handle<SiteFooter.Props>): () => import("remix/component").RemixElement;
|