@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,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style-mixin factories for landing / landing bands: content measure and
|
|
3
|
+
* gutters, fluid section spacing, band tones, display type, lead copy,
|
|
4
|
+
* hairlines, raised surfaces, eyebrows, CTA chrome and logo-cloud marks.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { UtilityMixin } from "@sdxc/u";
|
|
10
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
11
|
+
import type { CSSStyles } from "../utils/css-styles.js";
|
|
12
|
+
/**
|
|
13
|
+
* How much block padding a landing band leaves around its content.
|
|
14
|
+
* `"hero"` is the first viewport, `"normal"` the repeating mid-page rhythm,
|
|
15
|
+
* `"compact"` a tighter strip such as a proof row, `"cta"` a closing band.
|
|
16
|
+
*/
|
|
17
|
+
export type LandingSectionSpacing = "hero" | "normal" | "compact" | "cta";
|
|
18
|
+
/**
|
|
19
|
+
* What sits behind a landing band: nothing, a quiet tint, a faded grid, an
|
|
20
|
+
* inverted solid, the brand solid, or a gradient the page supplies through
|
|
21
|
+
* `--ui-landing-band-gradient`.
|
|
22
|
+
*/
|
|
23
|
+
export type LandingBandTone = "plain" | "tinted" | "grid" | "inverse" | "brand" | "gradient";
|
|
24
|
+
/**
|
|
25
|
+
* Outline depth {@link displayHeading} sizes for: `1` is the page H1,
|
|
26
|
+
* `2` a section chapter, `3` a quieter in-band title.
|
|
27
|
+
*/
|
|
28
|
+
export type LandingDisplayLevel = 1 | 2 | 3;
|
|
29
|
+
/** Which lead {@link landingLead} sizes: a band's, or the larger hero step. */
|
|
30
|
+
export type LandingLeadStep = "band" | "hero";
|
|
31
|
+
/**
|
|
32
|
+
* How an eyebrow reads: `mono` a quiet uppercase label for section headers,
|
|
33
|
+
* `quiet` a hairline pill for hero announcements, `soft` a filled muted pill,
|
|
34
|
+
* `pill` the brand pill, `numbered` a brand-ringed pill led by its index.
|
|
35
|
+
*/
|
|
36
|
+
export type LandingEyebrowVariant = "mono" | "quiet" | "soft" | "pill" | "numbered";
|
|
37
|
+
/**
|
|
38
|
+
* Centers a landing content column at `--ui-landing-measure` and pads
|
|
39
|
+
* its inline edges from `--ui-landing-gutter`, stepping 1rem → 1.5rem → 2rem
|
|
40
|
+
* as the nearest container grows past `md` and `lg`.
|
|
41
|
+
*
|
|
42
|
+
* @returns A `css()` mixin ready for a content wrapper's `mix` prop.
|
|
43
|
+
* @example
|
|
44
|
+
* <div mix={[landingContainer()]}>{children}</div>;
|
|
45
|
+
*/
|
|
46
|
+
export declare function landingContainer<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
47
|
+
styles: CSSStyles
|
|
48
|
+
], ElementProps>;
|
|
49
|
+
/**
|
|
50
|
+
* Re-declares the surface tokens that derive from the neutral palette on the element that
|
|
51
|
+
* scopes its own `--ui-color-neutral-*` scale, so raised cards, frames and hairlines inside
|
|
52
|
+
* take that palette's hue in light and dark instead of the page root's.
|
|
53
|
+
*
|
|
54
|
+
* @returns A `css()` mixin for the element that overrides a palette scale.
|
|
55
|
+
* @example
|
|
56
|
+
* <div style="--ui-color-neutral-950: oklch(0.165 0.006 55)" mix={[themeScope()]}>{page}</div>;
|
|
57
|
+
*/
|
|
58
|
+
export declare function themeScope<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
59
|
+
styles: CSSStyles
|
|
60
|
+
], ElementProps>;
|
|
61
|
+
/**
|
|
62
|
+
* Applies the band's block padding from the landing section-space tokens. Each
|
|
63
|
+
* step is fluid in the width of the container around the band, so a phone gets
|
|
64
|
+
* the tighter end and a desktop band the generous one without a breakpoint jump.
|
|
65
|
+
* The step rounds to whole pixels, so band hairlines and edges stay crisp.
|
|
66
|
+
*
|
|
67
|
+
* @param spacing Which step to apply. Defaults to `"normal"`.
|
|
68
|
+
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
69
|
+
* @example
|
|
70
|
+
* <section mix={[landingSectionSpace("hero")]}>{children}</section>;
|
|
71
|
+
*/
|
|
72
|
+
export declare function landingSectionSpace<Node extends Element = Element>(spacing?: LandingSectionSpacing): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
73
|
+
/**
|
|
74
|
+
* Paints a landing band's background: a quiet neutral tint (`--ui-landing-band-tint`,
|
|
75
|
+
* `-tint-dark`, and `--ui-landing-band-glow`, `none` to drop it), a hairline grid, an
|
|
76
|
+
* inverted solid, the brand solid, a page-supplied gradient, or nothing for `"plain"`.
|
|
77
|
+
* Inverse and brand bands re-point the neutral tokens at the fill's foreground; on a
|
|
78
|
+
* dark page an inverse band renders as a raised surface with hairlines and the glow.
|
|
79
|
+
*
|
|
80
|
+
* @param tone Which fill to apply. Defaults to `"plain"`.
|
|
81
|
+
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
82
|
+
* @example
|
|
83
|
+
* <section mix={[landingBandTone("tinted"), landingSectionSpace()]}>{children}</section>;
|
|
84
|
+
* @example
|
|
85
|
+
* <section mix={[landingBandTone("brand")]} style="--ui-landing-band-gradient: …">…</section>;
|
|
86
|
+
*/
|
|
87
|
+
export declare function landingBandTone<Node extends Element = Element>(tone?: LandingBandTone): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
88
|
+
/**
|
|
89
|
+
* Sets display typography for a landing headline. Level 1 is the page H1, sized
|
|
90
|
+
* fluidly from 42px to 72px (or `--ui-landing-display-max`) with leading that tightens
|
|
91
|
+
* as it grows; level 2 is the band chapter at two thirds of that, so the H1:H2 ratio
|
|
92
|
+
* holds at 1.5:1 at every width. Sizes read `cqi`, so a headline in a narrow column steps
|
|
93
|
+
* down on its own.
|
|
94
|
+
*
|
|
95
|
+
* @param level Outline depth. Defaults to `1` (page H1).
|
|
96
|
+
* @returns A `css()` mixin ready for a heading's `mix` prop.
|
|
97
|
+
* @example
|
|
98
|
+
* <h1 mix={[displayHeading()]}>{title}</h1>;
|
|
99
|
+
* @example
|
|
100
|
+
* <h2 mix={[displayHeading(2)]}>{chapter}</h2>;
|
|
101
|
+
*/
|
|
102
|
+
export declare function displayHeading<Node extends Element = Element>(level?: LandingDisplayLevel): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
103
|
+
/**
|
|
104
|
+
* Draws `strong`, `b` and `[data-emphasis]` inside supporting copy in the emphasis ink at
|
|
105
|
+
* the copy's own weight, so a key phrase gives the scanning eye a second level without
|
|
106
|
+
* turning bold.
|
|
107
|
+
*
|
|
108
|
+
* @returns A `css()` mixin ready for a lead, description or body's `mix` prop.
|
|
109
|
+
* @example
|
|
110
|
+
* <p mix={[landingEmphasis()]}>Ship <strong>one worker</strong> per app.</p>;
|
|
111
|
+
*/
|
|
112
|
+
export declare function landingEmphasis<Node extends Element = Element>(): UtilityMixin<Node>;
|
|
113
|
+
/**
|
|
114
|
+
* Supporting copy under a landing headline, in the body ink so it reads at 4.5:1 or
|
|
115
|
+
* better on the band, on a 2rem line, with emphasis fragments in the heading ink.
|
|
116
|
+
*
|
|
117
|
+
* @param step `"hero"` for the larger first-viewport lead. Defaults to `"band"`.
|
|
118
|
+
* @returns A `css()` mixin ready for a lead paragraph's `mix` prop.
|
|
119
|
+
* @example
|
|
120
|
+
* <p mix={[landingLead()]}>{description}</p>;
|
|
121
|
+
* @example
|
|
122
|
+
* <p mix={[landingLead("hero")]}>{description}</p>;
|
|
123
|
+
*/
|
|
124
|
+
export declare function landingLead<Node extends Element = Element>(step?: LandingLeadStep): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
125
|
+
/**
|
|
126
|
+
* A translucent 1px rule along the block-start edge — the hairline a sticky header,
|
|
127
|
+
* footer, or band uses to separate itself from what sits above. It takes the tone of
|
|
128
|
+
* whatever is behind it, and high contrast promotes it to the strong border.
|
|
129
|
+
*
|
|
130
|
+
* @returns A `css()` mixin ready for a host element's `mix` prop.
|
|
131
|
+
* @example
|
|
132
|
+
* <header mix={[landingHairline()]}>{nav}</header>;
|
|
133
|
+
*/
|
|
134
|
+
export declare function landingHairline<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
135
|
+
styles: CSSStyles
|
|
136
|
+
], ElementProps>;
|
|
137
|
+
/**
|
|
138
|
+
* A surface raised above the band — a frame, card or code sheet: the raised fill, the
|
|
139
|
+
* surface radius and the surface edge, which is a ring and a small drop in light and a
|
|
140
|
+
* top-lit hairline in dark. Drawn as a shadow, so the edge never changes the box size.
|
|
141
|
+
*
|
|
142
|
+
* @returns A `css()` mixin ready for a surface's `mix` prop.
|
|
143
|
+
* @example
|
|
144
|
+
* <div mix={[landingSurface()]}>{card}</div>;
|
|
145
|
+
*/
|
|
146
|
+
export declare function landingSurface<Node extends Element = Element>(): UtilityMixin<Node>;
|
|
147
|
+
/**
|
|
148
|
+
* Sizes a logo-cloud mark at `--ui-landing-logo-height` (1.75rem, 2.25rem from the
|
|
149
|
+
* `lg` container) in full ink, so adopter marks read at the size a visitor recognizes
|
|
150
|
+
* them. Dimming belongs to the cloud, never to the mark.
|
|
151
|
+
*
|
|
152
|
+
* @returns A `css()` mixin ready for an `img` or inline SVG's `mix` prop.
|
|
153
|
+
* @example
|
|
154
|
+
* <img src={logo} alt="" mix={[logoCloudMark()]} />;
|
|
155
|
+
*/
|
|
156
|
+
export declare function logoCloudMark<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
157
|
+
styles: CSSStyles
|
|
158
|
+
], ElementProps>;
|
|
159
|
+
/**
|
|
160
|
+
* Corner radius, weight and tactile edge for a landing CTA. Compose onto a
|
|
161
|
+
* {@link Button} or {@link LinkButton}; it sets `--ui-button-radius` and
|
|
162
|
+
* `--ui-button-weight`, which the control reads, so `--ui-landing-cta-radius` (pill,
|
|
163
|
+
* 8px, 6px) applies whatever order the stylesheets load in; `--ui-landing-cta-height`
|
|
164
|
+
* raises every CTA to one height. Only colour and shadow
|
|
165
|
+
* animate, so a hover never eases the control's size or radius.
|
|
166
|
+
*
|
|
167
|
+
* @returns A `css()` mixin ready for a CTA control's `mix` prop.
|
|
168
|
+
* @example
|
|
169
|
+
* <Button color="brand" mix={[landingCtaChrome()]}>{label}</Button>;
|
|
170
|
+
*/
|
|
171
|
+
export declare function landingCtaChrome<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
172
|
+
styles: CSSStyles
|
|
173
|
+
], ElementProps>;
|
|
174
|
+
/**
|
|
175
|
+
* The label above a headline, in one of five looks. `mono` and `soft` stay neutral,
|
|
176
|
+
* `quiet` is a hairline pill for hero announcements, `pill` and `numbered` carry the
|
|
177
|
+
* brand. Pills round at 1rem, so a label that wraps on a phone reads as a soft card. The
|
|
178
|
+
* mono label's face, weight, case and tracking read `--ui-landing-eyebrow-*` tokens. Variants live in `data-variant`; a brand tints the mono label through
|
|
179
|
+
* `--ui-landing-eyebrow-color`, and a linked eyebrow nudges its arrow on hover.
|
|
180
|
+
*
|
|
181
|
+
* @returns A `css()` mixin ready for an eyebrow `span` or `a`'s `mix` prop; set
|
|
182
|
+
* `data-variant` on the host.
|
|
183
|
+
* @example
|
|
184
|
+
* <span data-variant="mono" mix={[eyebrow()]}>{t("features.eyebrow")}</span>;
|
|
185
|
+
* @example
|
|
186
|
+
* <a href={post} data-variant="quiet" mix={[eyebrow()]}>{t("hero.news")}</a>;
|
|
187
|
+
*/
|
|
188
|
+
export declare function eyebrow<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
189
|
+
styles: CSSStyles
|
|
190
|
+
], ElementProps>;
|
|
191
|
+
/**
|
|
192
|
+
* A slow, endless turn for decoration behind hero media — concentric rings or a glow —
|
|
193
|
+
* that only runs when the visitor has not asked for reduced motion.
|
|
194
|
+
*
|
|
195
|
+
* @param direction `"reverse"` turns counter-clockwise, so two layers can counter-rotate.
|
|
196
|
+
* @returns A `css()` mixin ready for a backdrop layer's `mix` prop.
|
|
197
|
+
* @example
|
|
198
|
+
* <svg mix={[landingSlowSpin()]}>…</svg>;
|
|
199
|
+
*/
|
|
200
|
+
export declare function landingSlowSpin<Node extends Element = Element>(direction?: "normal" | "reverse"): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|