@sdxc/ui 2026.10.29 → 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 +7 -5
- package/dist/{patterns → landing}/faq-band.js +11 -12
- 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/landing/landing-section.d.ts +110 -0
- 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 +14 -4
- package/dist/{components → landing}/split.js +30 -21
- 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 -4
- 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 -151
- 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.d.ts +0 -81
- package/dist/components/marketing-section.js +0 -103
- package/dist/components/stat-strip.js +0 -64
- 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 -67
- package/dist/patterns/bento.js +0 -95
- 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 -45
- package/dist/patterns/step-list.js +0 -84
- 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,240 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { CheckIcon } from "@sdxc/icons";
|
|
3
|
+
import { keyframes } from "@sdxc/u/animation";
|
|
4
|
+
import { raw } from "@sdxc/u/general";
|
|
5
|
+
import { motionSafe } from "@sdxc/u/responsive";
|
|
6
|
+
import { landingSurface } from "../styles/landing.js";
|
|
7
|
+
import { MotionLoop } from "./motion-loop.js";
|
|
8
|
+
/** Length of one loop: the run plays, holds on its outcome, then resets. */
|
|
9
|
+
const CYCLE_SECONDS = 9;
|
|
10
|
+
/** Share of the cycle, in percent, at which the first step passes. */
|
|
11
|
+
const FIRST_STEP_AT = 12;
|
|
12
|
+
/** Most percent of the cycle between one step passing and the next. */
|
|
13
|
+
const MAX_STEP_GAP = 13;
|
|
14
|
+
/** Percent of the cycle the steps share, so a long run still leaves time to hold its outcome. */
|
|
15
|
+
const STEPS_SPAN = 68;
|
|
16
|
+
/** Percent of the cycle at which every lit element goes dark again for the next loop. */
|
|
17
|
+
const RESET_AT = 94;
|
|
18
|
+
/** Inline size of a row's status dot; the rail runs through the dots' centres. */
|
|
19
|
+
const DOT = "1.75rem";
|
|
20
|
+
/**
|
|
21
|
+
* Room the trigger row keeps at its end for the pause toggle pinned to the surface's top
|
|
22
|
+
* corner, so a caption that wraps on a phone stays clear of the button.
|
|
23
|
+
*/
|
|
24
|
+
const PAUSE_CLEARANCE = "2.75rem";
|
|
25
|
+
/** Space between rows, which each connector spans to reach the next dot. */
|
|
26
|
+
const ROW_GAP = "1.25rem";
|
|
27
|
+
/**
|
|
28
|
+
* Renders the run as an ordered list on a raised surface inside a {@link MotionLoop}.
|
|
29
|
+
* Without motion, or before the animation starts, every step shows as passed, so the
|
|
30
|
+
* static picture is the finished run. Two diagrams with the same step count share keyframes.
|
|
31
|
+
*
|
|
32
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
33
|
+
* @returns The render function producing the diagram's markup.
|
|
34
|
+
* @example
|
|
35
|
+
* <FlowDiagram
|
|
36
|
+
* aria-label="Sign-in check"
|
|
37
|
+
* trigger={{ icon: <ClockIcon size={14} />, title: "Every 5 minutes" }}
|
|
38
|
+
* steps={[{ title: "Sign in", code: 'http.post "/api/sessions"' }]}
|
|
39
|
+
* outcome="Run passed"
|
|
40
|
+
* />
|
|
41
|
+
*/
|
|
42
|
+
export function FlowDiagram(handle) {
|
|
43
|
+
return () => {
|
|
44
|
+
let { "aria-label": label, footnote, mix, outcome, pauseLabel, steps, trigger, ...rest } = handle.props;
|
|
45
|
+
let timing = timingFor(steps.length);
|
|
46
|
+
return (_jsx(MotionLoop, { ...rest, pauseLabel: pauseLabel, placement: "start-end", mix: mix, children: _jsxs("div", { "data-slot": "flow-diagram", mix: [
|
|
47
|
+
landingSurface(),
|
|
48
|
+
raw({ display: "grid", gap: "1.5rem", padding: "clamp(1.25rem, 4cqi, 2rem)" }),
|
|
49
|
+
], children: [_jsxs("ol", { "aria-label": label, mix: [
|
|
50
|
+
raw({
|
|
51
|
+
position: "relative",
|
|
52
|
+
display: "grid",
|
|
53
|
+
gap: ROW_GAP,
|
|
54
|
+
margin: "0",
|
|
55
|
+
padding: "0",
|
|
56
|
+
listStyle: "none",
|
|
57
|
+
}),
|
|
58
|
+
], children: [_jsxs("li", { mix: [stepRow()], children: [_jsx("span", { mix: [
|
|
59
|
+
dot(),
|
|
60
|
+
raw({ color: "var(--ui-brand-fg)", borderColor: "var(--ui-brand-border)" }),
|
|
61
|
+
], children: trigger.icon }), steps.length > 0 ? _jsx(Connector, { timing: timing, index: -1 }) : null, _jsx(RowText, { title: trigger.title, detail: trigger.detail, clearance: true })] }), steps.map((step, index) => (_jsxs("li", { mix: [stepRow()], children: [_jsx("span", { mix: [dot(), stepDot(timing, index)], children: _jsx(CheckIcon, { size: 14, strokeWidth: 2.5, "aria-hidden": "true", mix: [stepCheck(timing, index)] }) }), index < steps.length - 1 ? _jsx(Connector, { timing: timing, index: index }) : null, _jsx(RowText, { title: step.title, detail: step.detail, code: step.code })] }, index)))] }), _jsxs("div", { "data-slot": "flow-diagram-footer", mix: [
|
|
62
|
+
raw({
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexWrap: "wrap",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "space-between",
|
|
67
|
+
gap: "0.75rem",
|
|
68
|
+
paddingBlockStart: "1.25rem",
|
|
69
|
+
borderBlockStart: "1px solid var(--ui-landing-hairline, var(--ui-neutral-border))",
|
|
70
|
+
}),
|
|
71
|
+
], children: [_jsxs("span", { "data-slot": "flow-diagram-outcome", mix: [outcomeBadge(timing)], children: [_jsx(CheckIcon, { size: 14, strokeWidth: 2.5, "aria-hidden": "true" }), outcome] }), footnote ? (_jsx("span", { mix: [
|
|
72
|
+
detail(),
|
|
73
|
+
raw({ display: "inline-flex", alignItems: "center", gap: "0.375rem" }),
|
|
74
|
+
], children: footnote })) : null] })] }) }));
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/** Spreads `count` steps over {@link STEPS_SPAN}, never further apart than {@link MAX_STEP_GAP}. */
|
|
78
|
+
function timingFor(count) {
|
|
79
|
+
return { count, gap: count > 0 ? Math.min(MAX_STEP_GAP, STEPS_SPAN / count) : MAX_STEP_GAP };
|
|
80
|
+
}
|
|
81
|
+
/** Percent of the cycle at which step `index` passes. */
|
|
82
|
+
function passesAt(timing, index) {
|
|
83
|
+
return FIRST_STEP_AT + index * timing.gap;
|
|
84
|
+
}
|
|
85
|
+
/** A row's caption over its quieter line, which is the step's code when it has some. */
|
|
86
|
+
function RowText(handle) {
|
|
87
|
+
return () => {
|
|
88
|
+
let { clearance, code, detail: line, title } = handle.props;
|
|
89
|
+
return (_jsxs("span", { mix: [
|
|
90
|
+
raw({ display: "grid", gap: "0.125rem", minInlineSize: "0" }),
|
|
91
|
+
clearance ? raw({ paddingInlineEnd: PAUSE_CLEARANCE }) : [],
|
|
92
|
+
], children: [_jsx("span", { mix: [caption()], children: title }), code === undefined ? null : (_jsx("code", { mix: [detail(), raw({ fontFamily: "var(--ui-font-mono)" })], children: code })), code === undefined && line !== undefined ? _jsx("span", { mix: [detail()], children: line }) : null] }));
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The line from one row's dot to the next row's dot. It runs from under the dot to the
|
|
97
|
+
* end of the row gap, where the next dot starts, so the line ends at the next dot however
|
|
98
|
+
* tall a row's text wraps. Its fill grows as the run moves to the next step.
|
|
99
|
+
*/
|
|
100
|
+
function Connector(handle) {
|
|
101
|
+
return () => {
|
|
102
|
+
let { index, timing } = handle.props;
|
|
103
|
+
let name = `ui-flow-connector-${timing.count}-${index + 1}`;
|
|
104
|
+
let from = index < 0 ? FIRST_STEP_AT - timing.gap / 2 : passesAt(timing, index);
|
|
105
|
+
let to = passesAt(timing, index + 1);
|
|
106
|
+
return (_jsx("span", { "aria-hidden": "true", mix: [
|
|
107
|
+
raw({
|
|
108
|
+
position: "absolute",
|
|
109
|
+
insetBlockStart: DOT,
|
|
110
|
+
insetBlockEnd: `calc(-1 * ${ROW_GAP})`,
|
|
111
|
+
insetInlineStart: `calc(${DOT} / 2 - 1px)`,
|
|
112
|
+
inlineSize: "2px",
|
|
113
|
+
backgroundColor: "var(--ui-neutral-border)",
|
|
114
|
+
}),
|
|
115
|
+
], children: _jsx("span", { mix: [
|
|
116
|
+
keyframes(name, {
|
|
117
|
+
"0%": { transform: "scaleY(0)" },
|
|
118
|
+
[`${from}%`]: { transform: "scaleY(0)" },
|
|
119
|
+
[`${to}%`]: { transform: "scaleY(1)" },
|
|
120
|
+
[`${RESET_AT}%`]: { transform: "scaleY(1)" },
|
|
121
|
+
[`${RESET_AT + 2}%`]: { transform: "scaleY(0)" },
|
|
122
|
+
"100%": { transform: "scaleY(0)" },
|
|
123
|
+
}),
|
|
124
|
+
raw({
|
|
125
|
+
position: "absolute",
|
|
126
|
+
inset: "0",
|
|
127
|
+
backgroundColor: "var(--ui-success-bg-solid)",
|
|
128
|
+
transformOrigin: "top",
|
|
129
|
+
}),
|
|
130
|
+
motionSafe(raw(loop(name))),
|
|
131
|
+
] }) }));
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
/** The animation declarations every lit element shares: one linear loop of the cycle. */
|
|
135
|
+
function loop(name) {
|
|
136
|
+
return {
|
|
137
|
+
animationName: name,
|
|
138
|
+
animationDuration: `${CYCLE_SECONDS}s`,
|
|
139
|
+
animationTimingFunction: "linear",
|
|
140
|
+
animationIterationCount: "infinite",
|
|
141
|
+
animationFillMode: "both",
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Keyframe stops that hold `off` until `at`, switch to `on`, and go back to `off` at
|
|
146
|
+
* {@link RESET_AT}, so every element of the run resets together.
|
|
147
|
+
*/
|
|
148
|
+
function litFrames(at, off, on) {
|
|
149
|
+
return {
|
|
150
|
+
"0%": off,
|
|
151
|
+
[`${at - 1}%`]: off,
|
|
152
|
+
[`${at}%`]: on,
|
|
153
|
+
[`${RESET_AT}%`]: on,
|
|
154
|
+
[`${RESET_AT + 2}%`]: off,
|
|
155
|
+
"100%": off,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/** A row of the run: the status dot, then the caption over its detail line. */
|
|
159
|
+
function stepRow() {
|
|
160
|
+
return raw({
|
|
161
|
+
position: "relative",
|
|
162
|
+
display: "grid",
|
|
163
|
+
gridTemplateColumns: `${DOT} minmax(0, 1fr)`,
|
|
164
|
+
columnGap: "0.875rem",
|
|
165
|
+
alignItems: "start",
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/** The round status marker a row's state reads from. */
|
|
169
|
+
function dot() {
|
|
170
|
+
return raw({
|
|
171
|
+
position: "relative",
|
|
172
|
+
display: "grid",
|
|
173
|
+
placeItems: "center",
|
|
174
|
+
inlineSize: DOT,
|
|
175
|
+
blockSize: DOT,
|
|
176
|
+
borderRadius: "9999px",
|
|
177
|
+
border: "1px solid var(--ui-neutral-border)",
|
|
178
|
+
backgroundColor: "var(--ui-bg)",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/** A step's dot, passed by default and lit in turn while the run animates. */
|
|
182
|
+
function stepDot(timing, index) {
|
|
183
|
+
let name = `ui-flow-dot-${timing.count}-${index}`;
|
|
184
|
+
let on = {
|
|
185
|
+
backgroundColor: "var(--ui-success-bg-solid)",
|
|
186
|
+
borderColor: "var(--ui-success-bg-solid)",
|
|
187
|
+
};
|
|
188
|
+
let off = { backgroundColor: "var(--ui-bg)", borderColor: "var(--ui-neutral-border)" };
|
|
189
|
+
return [
|
|
190
|
+
keyframes(name, litFrames(passesAt(timing, index), off, on)),
|
|
191
|
+
raw({ ...on, color: "var(--ui-success-fg-on-solid)" }),
|
|
192
|
+
motionSafe(raw(loop(name))),
|
|
193
|
+
];
|
|
194
|
+
}
|
|
195
|
+
/** A step's check mark, shown once the step passes. */
|
|
196
|
+
function stepCheck(timing, index) {
|
|
197
|
+
let name = `ui-flow-check-${timing.count}-${index}`;
|
|
198
|
+
return [
|
|
199
|
+
keyframes(name, litFrames(passesAt(timing, index), { opacity: "0" }, { opacity: "1" })),
|
|
200
|
+
motionSafe(raw(loop(name))),
|
|
201
|
+
];
|
|
202
|
+
}
|
|
203
|
+
/** The run's outcome, which appears after the last step passes. */
|
|
204
|
+
function outcomeBadge(timing) {
|
|
205
|
+
let name = `ui-flow-outcome-${timing.count}`;
|
|
206
|
+
return [
|
|
207
|
+
keyframes(name, litFrames(passesAt(timing, timing.count), { opacity: "0", transform: "translateY(4px)" }, { opacity: "1", transform: "none" })),
|
|
208
|
+
raw({
|
|
209
|
+
display: "inline-flex",
|
|
210
|
+
alignItems: "center",
|
|
211
|
+
gap: "0.375rem",
|
|
212
|
+
paddingInline: "0.625rem",
|
|
213
|
+
paddingBlock: "0.25rem",
|
|
214
|
+
borderRadius: "9999px",
|
|
215
|
+
fontSize: "0.8125rem",
|
|
216
|
+
fontWeight: "600",
|
|
217
|
+
color: "var(--ui-success-fg)",
|
|
218
|
+
backgroundColor: "var(--ui-success-bg-tint)",
|
|
219
|
+
}),
|
|
220
|
+
motionSafe(raw(loop(name))),
|
|
221
|
+
];
|
|
222
|
+
}
|
|
223
|
+
/** A row's caption in the heading ink. */
|
|
224
|
+
function caption() {
|
|
225
|
+
return raw({
|
|
226
|
+
fontSize: "0.9375rem",
|
|
227
|
+
lineHeight: "1.5rem",
|
|
228
|
+
fontWeight: "600",
|
|
229
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/** The quieter line under a caption, and the footnote. */
|
|
233
|
+
function detail() {
|
|
234
|
+
return raw({
|
|
235
|
+
fontSize: "0.8125rem",
|
|
236
|
+
lineHeight: "1.25rem",
|
|
237
|
+
color: "var(--ui-neutral-fg-muted)",
|
|
238
|
+
overflowWrap: "anywhere",
|
|
239
|
+
});
|
|
240
|
+
}
|
|
@@ -1,38 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A
|
|
3
|
-
*
|
|
4
|
-
* wells are the claim-cell affordance size.
|
|
2
|
+
* A rounded square tile that holds a landing metaphor glyph — a quiet
|
|
3
|
+
* hairline ring by default, or a brand-tinted badge. Distinct from
|
|
4
|
+
* product-chrome icons and UI chrome: wells are the claim-cell affordance size.
|
|
5
5
|
*
|
|
6
6
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
9
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
import type { Feature } from "./feature.js";
|
|
10
11
|
/**
|
|
11
12
|
* Prop types for {@link IconWell}.
|
|
12
13
|
*/
|
|
13
14
|
export declare namespace IconWell {
|
|
14
15
|
/**
|
|
15
|
-
* Well footprint: compact for dense grids, medium for
|
|
16
|
-
* for hero
|
|
16
|
+
* Well footprint: compact for dense grids, medium for every claim beside a
|
|
17
|
+
* {@link Feature.Icon}, large for a lone hero metaphor.
|
|
17
18
|
*/
|
|
18
19
|
type Size = "sm" | "md" | "lg";
|
|
20
|
+
/**
|
|
21
|
+
* Tile chrome: a `quiet` hairline ring in the heading ink, or a `brand`
|
|
22
|
+
* tinted and bordered badge for a claim that should read as a highlight.
|
|
23
|
+
*/
|
|
24
|
+
type Tone = Feature.IconTone;
|
|
19
25
|
/**
|
|
20
26
|
* Props accepted by {@link IconWell}.
|
|
21
27
|
*/
|
|
22
28
|
interface Props extends TagProps<"span"> {
|
|
23
29
|
/** Footprint. Defaults to {@link DEFAULT_SIZE}. */
|
|
24
30
|
size?: Size;
|
|
31
|
+
/** Tile chrome. Defaults to {@link DEFAULT_TONE}. */
|
|
32
|
+
tone?: Tone;
|
|
25
33
|
/** Glyph rendered inside the well — typically an `@sdxc/icons` icon. */
|
|
26
34
|
children: RemixNode;
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
|
-
* Centers a glyph in a
|
|
31
|
-
*
|
|
38
|
+
* Centers a glyph in a rounded square so landing claim icons share one size
|
|
39
|
+
* language across bands, with the same tile {@link Feature.Icon} draws.
|
|
32
40
|
*
|
|
33
41
|
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
34
42
|
* @returns The render function producing the well's markup.
|
|
35
43
|
* @example
|
|
36
44
|
* <IconWell><ZapIcon size={18} aria-hidden="true" /></IconWell>
|
|
45
|
+
* @example
|
|
46
|
+
* <IconWell tone="brand"><ZapIcon size={18} aria-hidden="true" /></IconWell>
|
|
37
47
|
*/
|
|
38
48
|
export declare function IconWell(handle: Handle<IconWell.Props>): () => import("remix/component").RemixElement;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
3
|
+
import { ICON_TILE_SIDE, iconTile } from "./styles/card-grid.js";
|
|
4
|
+
/** Side length {@link IconWell} applies when `size` is omitted. */
|
|
5
|
+
const DEFAULT_SIZE = "md";
|
|
6
|
+
/** Tile chrome {@link IconWell} applies when `tone` is omitted. */
|
|
7
|
+
const DEFAULT_TONE = "quiet";
|
|
8
|
+
/**
|
|
9
|
+
* Side length on the spacing scale for each footprint: 2rem, then the 2.5rem every
|
|
10
|
+
* claim tile shares, then 3rem.
|
|
11
|
+
*/
|
|
12
|
+
const SIDE_BY_SIZE = { sm: 8, md: ICON_TILE_SIDE, lg: 12 };
|
|
13
|
+
/**
|
|
14
|
+
* Centers a glyph in a rounded square so landing claim icons share one size
|
|
15
|
+
* language across bands, with the same tile {@link Feature.Icon} draws.
|
|
16
|
+
*
|
|
17
|
+
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
18
|
+
* @returns The render function producing the well's markup.
|
|
19
|
+
* @example
|
|
20
|
+
* <IconWell><ZapIcon size={18} aria-hidden="true" /></IconWell>
|
|
21
|
+
* @example
|
|
22
|
+
* <IconWell tone="brand"><ZapIcon size={18} aria-hidden="true" /></IconWell>
|
|
23
|
+
*/
|
|
24
|
+
export function IconWell(handle) {
|
|
25
|
+
return () => {
|
|
26
|
+
let { mix, size, tone, ...rest } = handle.props;
|
|
27
|
+
let resolvedSize = size ?? DEFAULT_SIZE;
|
|
28
|
+
let resolvedTone = tone ?? DEFAULT_TONE;
|
|
29
|
+
return (_jsx("span", { ...rest, "data-slot": "icon-well", "data-size": resolvedSize, "data-tone": resolvedTone, mix: mergeMix(iconTile(resolvedTone, SIDE_BY_SIZE[resolvedSize]), mix) }));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/landing`: the bands, composition craft and animated visuals a
|
|
3
|
+
* landing page is built from, with the helpers only they use. Each component also
|
|
4
|
+
* imports on its own as `@sdxc/ui/landing/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./accent-text.js";
|
|
10
|
+
export * from "./animations/entrance.js";
|
|
11
|
+
export * from "./announcement-chip.js";
|
|
12
|
+
export * from "./author-band.js";
|
|
13
|
+
export * from "./bento.js";
|
|
14
|
+
export * from "./changelog-strip.js";
|
|
15
|
+
export * from "./check-row.js";
|
|
16
|
+
export * from "./closing-cta.js";
|
|
17
|
+
export * from "./code-stage.js";
|
|
18
|
+
export * from "./crosshair.js";
|
|
19
|
+
export * from "./curriculum.js";
|
|
20
|
+
export * from "./drawn-chart.js";
|
|
21
|
+
export * from "./event-ticker.js";
|
|
22
|
+
export * from "./fan-out-diagram.js";
|
|
23
|
+
export * from "./faq-band.js";
|
|
24
|
+
export * from "./feature-band.js";
|
|
25
|
+
export * from "./feature.js";
|
|
26
|
+
export * from "./flow-diagram.js";
|
|
27
|
+
export * from "./icon-well.js";
|
|
28
|
+
export * from "./install-tabs.js";
|
|
29
|
+
export * from "./landing-header.js";
|
|
30
|
+
export * from "./landing-hero.js";
|
|
31
|
+
export * from "./landing-section.js";
|
|
32
|
+
export * from "./logo-cloud.js";
|
|
33
|
+
export * from "./logo-sentence.js";
|
|
34
|
+
export * from "./marquee.js";
|
|
35
|
+
export * from "./motion-loop.js";
|
|
36
|
+
export * from "./pricing-band.js";
|
|
37
|
+
export * from "./product-frame.js";
|
|
38
|
+
export * from "./proof-strip.js";
|
|
39
|
+
export * from "./rails.js";
|
|
40
|
+
export * from "./rotating-text.js";
|
|
41
|
+
export * from "./segmented-stage.js";
|
|
42
|
+
export * from "./sequence-diagram.js";
|
|
43
|
+
export * from "./site-footer.js";
|
|
44
|
+
export * from "./site-header.js";
|
|
45
|
+
export * from "./split.js";
|
|
46
|
+
export * from "./sponsor-wall.js";
|
|
47
|
+
export * from "./stat-strip.js";
|
|
48
|
+
export * from "./step-list.js";
|
|
49
|
+
export * from "./styles/card-grid.js";
|
|
50
|
+
export * from "./tabbed-stage.js";
|
|
51
|
+
export * from "./testimonial-band.js";
|
|
52
|
+
export * from "./typed-terminal.js";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/landing`: the bands, composition craft and animated visuals a
|
|
3
|
+
* landing page is built from, with the helpers only they use. Each component also
|
|
4
|
+
* imports on its own as `@sdxc/ui/landing/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./accent-text.js";
|
|
10
|
+
export * from "./animations/entrance.js";
|
|
11
|
+
export * from "./announcement-chip.js";
|
|
12
|
+
export * from "./author-band.js";
|
|
13
|
+
export * from "./bento.js";
|
|
14
|
+
export * from "./changelog-strip.js";
|
|
15
|
+
export * from "./check-row.js";
|
|
16
|
+
export * from "./closing-cta.js";
|
|
17
|
+
export * from "./code-stage.js";
|
|
18
|
+
export * from "./crosshair.js";
|
|
19
|
+
export * from "./curriculum.js";
|
|
20
|
+
export * from "./drawn-chart.js";
|
|
21
|
+
export * from "./event-ticker.js";
|
|
22
|
+
export * from "./fan-out-diagram.js";
|
|
23
|
+
export * from "./faq-band.js";
|
|
24
|
+
export * from "./feature-band.js";
|
|
25
|
+
export * from "./feature.js";
|
|
26
|
+
export * from "./flow-diagram.js";
|
|
27
|
+
export * from "./icon-well.js";
|
|
28
|
+
export * from "./install-tabs.js";
|
|
29
|
+
export * from "./landing-header.js";
|
|
30
|
+
export * from "./landing-hero.js";
|
|
31
|
+
export * from "./landing-section.js";
|
|
32
|
+
export * from "./logo-cloud.js";
|
|
33
|
+
export * from "./logo-sentence.js";
|
|
34
|
+
export * from "./marquee.js";
|
|
35
|
+
export * from "./motion-loop.js";
|
|
36
|
+
export * from "./pricing-band.js";
|
|
37
|
+
export * from "./product-frame.js";
|
|
38
|
+
export * from "./proof-strip.js";
|
|
39
|
+
export * from "./rails.js";
|
|
40
|
+
export * from "./rotating-text.js";
|
|
41
|
+
export * from "./segmented-stage.js";
|
|
42
|
+
export * from "./sequence-diagram.js";
|
|
43
|
+
export * from "./site-footer.js";
|
|
44
|
+
export * from "./site-header.js";
|
|
45
|
+
export * from "./split.js";
|
|
46
|
+
export * from "./sponsor-wall.js";
|
|
47
|
+
export * from "./stat-strip.js";
|
|
48
|
+
export * from "./step-list.js";
|
|
49
|
+
export * from "./styles/card-grid.js";
|
|
50
|
+
export * from "./tabbed-stage.js";
|
|
51
|
+
export * from "./testimonial-band.js";
|
|
52
|
+
export * from "./typed-terminal.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
|
2
2
|
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
3
3
|
import { bg, border, borderEdge, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { rounded, transition } from "@sdxc/u/effects";
|
|
5
|
-
import { cursor, raw } from "@sdxc/u/general";
|
|
5
|
+
import { cursor, raw, mergeMix } from "@sdxc/u/general";
|
|
6
6
|
import { basis, flex, flexWrap, gap, hidden, items, justify } from "@sdxc/u/layout";
|
|
7
7
|
import { overflow, overflowX } from "@sdxc/u/overflow";
|
|
8
8
|
import { minIs, p } from "@sdxc/u/size";
|
|
@@ -29,15 +29,14 @@ export function InstallTabs(handle) {
|
|
|
29
29
|
return () => {
|
|
30
30
|
let { mix, name, ...rest } = handle.props;
|
|
31
31
|
handle.context.set({ name });
|
|
32
|
-
return (_jsx("form", { ...rest, "data-slot": "install-tabs", "data-name": name, mix: [
|
|
32
|
+
return (_jsx("form", { ...rest, "data-slot": "install-tabs", "data-name": name, mix: mergeMix([
|
|
33
33
|
flex(),
|
|
34
34
|
flexWrap("wrap"),
|
|
35
35
|
overflow("hidden"),
|
|
36
36
|
rounded("lg"),
|
|
37
37
|
border({ color: "neutral", width: 1, style: "solid" }),
|
|
38
38
|
bg(),
|
|
39
|
-
|
|
40
|
-
] }));
|
|
39
|
+
], mix) }));
|
|
41
40
|
};
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
@@ -55,7 +54,7 @@ InstallTabs.Option = function InstallTabsOption(handle) {
|
|
|
55
54
|
let groupName = context?.name ?? "install-tabs";
|
|
56
55
|
let inputId = `${groupName}-${value}`;
|
|
57
56
|
let valueId = `${inputId}-value`;
|
|
58
|
-
return (_jsxs("div", { ...rest, "data-slot": "install-tabs-option", "data-value": value, mix:
|
|
57
|
+
return (_jsxs("div", { ...rest, "data-slot": "install-tabs-option", "data-value": value, mix: mergeMix(raw({ display: "contents" }), mix), children: [_jsx("input", { type: "radio", name: groupName, id: inputId, value: value, defaultChecked: defaultChecked, mix: [visuallyHidden()] }), _jsx("label", { htmlFor: inputId, mix: [
|
|
59
58
|
raw({ order: -1 }),
|
|
60
59
|
p(2, 3),
|
|
61
60
|
fg("neutral"),
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Eyebrow, chapter title, and lead copy that open a landing band. The title
|
|
3
|
+
* uses display chapter typography; the lead stays on the landing lead measure
|
|
4
|
+
* so the claim reads first and the support follows, at token-driven spacing.
|
|
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 { LandingEyebrowVariant } from "../styles/landing.js";
|
|
11
|
+
/**
|
|
12
|
+
* Prop types for {@link LandingHeader}.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace LandingHeader {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the stack stretches start-aligned or centers as one statement.
|
|
17
|
+
*/
|
|
18
|
+
type Align = "start" | "center";
|
|
19
|
+
/**
|
|
20
|
+
* `stack` sets the eyebrow, title and lead in one column. `split` puts the lead
|
|
21
|
+
* beside the title from the band's `lg` width, aligned to the title's last line.
|
|
22
|
+
*/
|
|
23
|
+
type Layout = "stack" | "split";
|
|
24
|
+
/**
|
|
25
|
+
* `default` sets the whole title in the heading ink. `statement` sets it in the muted
|
|
26
|
+
* ink with its `<strong>` phrase in the heading ink, so it reads as a claim and support.
|
|
27
|
+
*/
|
|
28
|
+
type Tone = "default" | "statement";
|
|
29
|
+
/**
|
|
30
|
+
* How the optional eyebrow reads: a quiet mono label (the section default), a
|
|
31
|
+
* hairline `quiet` pill, a filled `soft` pill, the brand `pill`, or a
|
|
32
|
+
* brand-ringed `numbered` pill led by `eyebrowIndex`.
|
|
33
|
+
*/
|
|
34
|
+
type EyebrowVariant = LandingEyebrowVariant;
|
|
35
|
+
/**
|
|
36
|
+
* Per-part styling for the elements the header renders besides its host.
|
|
37
|
+
*/
|
|
38
|
+
interface PartsProps {
|
|
39
|
+
/** Styling for the optional eyebrow label. */
|
|
40
|
+
eyebrow?: TagProps<"span">["mix"];
|
|
41
|
+
/** Styling for the title {@link Heading}. */
|
|
42
|
+
title?: TagProps<"h1">["mix"];
|
|
43
|
+
/** Styling for the optional lead paragraph. */
|
|
44
|
+
description?: TagProps<"p">["mix"];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Props accepted by {@link LandingHeader}.
|
|
48
|
+
*/
|
|
49
|
+
interface Props extends TagProps<"header"> {
|
|
50
|
+
/** Short label above the title. */
|
|
51
|
+
eyebrow?: RemixNode;
|
|
52
|
+
/**
|
|
53
|
+
* Eyebrow look. Defaults to {@link DEFAULT_EYEBROW_VARIANT} when an
|
|
54
|
+
* eyebrow is present.
|
|
55
|
+
*/
|
|
56
|
+
eyebrowVariant?: EyebrowVariant;
|
|
57
|
+
/** Turns the eyebrow into a link with a trailing arrow that nudges on hover. */
|
|
58
|
+
eyebrowHref?: string;
|
|
59
|
+
/** Index a `numbered` eyebrow leads with, such as `"01"`. */
|
|
60
|
+
eyebrowIndex?: RemixNode;
|
|
61
|
+
/** Supporting copy under the title; `<strong>` fragments draw in the heading ink. */
|
|
62
|
+
description?: RemixNode;
|
|
63
|
+
/** Stack alignment. Defaults to {@link DEFAULT_ALIGN}; a split or an action aligns start. */
|
|
64
|
+
align?: Align;
|
|
65
|
+
/** Arrangement of title and lead. Defaults to `"stack"`. */
|
|
66
|
+
layout?: Layout;
|
|
67
|
+
/** Title ink. Defaults to `"default"`. */
|
|
68
|
+
tone?: Tone;
|
|
69
|
+
/**
|
|
70
|
+
* A second line at the title's size in the muted ink, inside the heading, so the
|
|
71
|
+
* two lines read as one two-tone heading.
|
|
72
|
+
*/
|
|
73
|
+
subtitle?: RemixNode;
|
|
74
|
+
/**
|
|
75
|
+
* A control at the header row's inline end, such as a "See all" link, aligned to
|
|
76
|
+
* the title's last line; it wraps under the title when the row runs out of room.
|
|
77
|
+
*/
|
|
78
|
+
action?: RemixNode;
|
|
79
|
+
/** Per-part styling for eyebrow, title, and description. */
|
|
80
|
+
parts?: PartsProps;
|
|
81
|
+
/** Title copy — rendered through {@link Heading} at chapter display size. */
|
|
82
|
+
children: RemixNode;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Renders an optional eyebrow, a chapter-sized {@link Heading} from `children`,
|
|
87
|
+
* and an optional lead paragraph. A mono eyebrow sits 0.5rem above the title and a
|
|
88
|
+
* pill 1.5rem; the lead follows 1rem below; the band's body starts
|
|
89
|
+
* `--ui-landing-header-space` after. The title renders at the enclosing band's
|
|
90
|
+
* heading level: `<h2>` in a band on a bare page.
|
|
91
|
+
*
|
|
92
|
+
* @param handle Runtime handle carrying the host `<header>`'s props.
|
|
93
|
+
* @returns The render function producing the header's markup.
|
|
94
|
+
* @example
|
|
95
|
+
* <LandingHeader eyebrow={t("badge")} description={t("lead")} align="center">
|
|
96
|
+
* {t("title")}
|
|
97
|
+
* </LandingHeader>
|
|
98
|
+
* @example
|
|
99
|
+
* <LandingHeader eyebrow={t("chapter")} eyebrowVariant="numbered" eyebrowIndex="02">
|
|
100
|
+
* {t("title")}
|
|
101
|
+
* </LandingHeader>
|
|
102
|
+
*/
|
|
103
|
+
export declare function LandingHeader(handle: Handle<LandingHeader.Props>): () => import("remix/component").RemixElement;
|