@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
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
-
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { inlineFlex, items, vstack } from "@sdxc/u/layout";
|
|
5
|
-
import { m, mbe, mi, pb, pi } from "@sdxc/u/size";
|
|
6
|
-
import { when } from "@sdxc/u/state";
|
|
7
|
-
import { font, leading, text, textAlign, textTransform, tracking, weight, } from "@sdxc/u/typography";
|
|
8
|
-
import { marketingLead } from "../styles/marketing.js";
|
|
9
|
-
import { Heading } from "./heading.js";
|
|
10
|
-
/** Content alignment {@link MarketingHeader} applies when `align` is omitted. */
|
|
11
|
-
const DEFAULT_ALIGN = "start";
|
|
12
|
-
/** Eyebrow chrome {@link MarketingHeader} applies when `eyebrowVariant` is omitted. */
|
|
13
|
-
const DEFAULT_EYEBROW_VARIANT = "pill";
|
|
14
|
-
/**
|
|
15
|
-
* Renders an optional eyebrow, a chapter-sized {@link Heading} from `children`,
|
|
16
|
-
* and an optional lead paragraph. Nest inside a {@link HeadingScope} so the
|
|
17
|
-
* title picks up the band's outline depth.
|
|
18
|
-
*
|
|
19
|
-
* @param handle Runtime handle carrying the host `<header>`'s props.
|
|
20
|
-
* @returns The render function producing the header's markup.
|
|
21
|
-
* @example
|
|
22
|
-
* <MarketingHeader eyebrow={t("badge")} description={t("lead")} align="center">
|
|
23
|
-
* {t("title")}
|
|
24
|
-
* </MarketingHeader>
|
|
25
|
-
* @example
|
|
26
|
-
* <MarketingHeader eyebrow={t("new")} eyebrowVariant="chip" description={t("lead")}>
|
|
27
|
-
* {t("title")}
|
|
28
|
-
* </MarketingHeader>
|
|
29
|
-
*/
|
|
30
|
-
export function MarketingHeader(handle) {
|
|
31
|
-
return () => {
|
|
32
|
-
let { align, children, description, eyebrow, eyebrowVariant, mix, parts, ...rest } = handle.props;
|
|
33
|
-
let resolvedAlign = align ?? DEFAULT_ALIGN;
|
|
34
|
-
let resolvedEyebrowVariant = eyebrowVariant ?? DEFAULT_EYEBROW_VARIANT;
|
|
35
|
-
let isCenter = resolvedAlign === "center";
|
|
36
|
-
return (_jsxs("header", { ...rest, "data-align": resolvedAlign, mix: [
|
|
37
|
-
vstack({
|
|
38
|
-
align: isCenter ? "center" : "stretch",
|
|
39
|
-
gap: 2,
|
|
40
|
-
}),
|
|
41
|
-
isCenter ? [textAlign("center"), mi("auto")] : [],
|
|
42
|
-
mbe(10),
|
|
43
|
-
mix,
|
|
44
|
-
], children: [eyebrow ? (_jsx("span", { "data-variant": resolvedEyebrowVariant, mix: [
|
|
45
|
-
inlineFlex(),
|
|
46
|
-
items("center"),
|
|
47
|
-
text("xs"),
|
|
48
|
-
weight("semibold"),
|
|
49
|
-
when('&[data-variant="pill"]', [
|
|
50
|
-
pb(0.5),
|
|
51
|
-
pi(2.5),
|
|
52
|
-
rounded("full"),
|
|
53
|
-
border({ color: "brand", width: 1, style: "solid" }),
|
|
54
|
-
bg("brand.tint"),
|
|
55
|
-
fg("brand"),
|
|
56
|
-
]),
|
|
57
|
-
when('&[data-variant="mono"]', [
|
|
58
|
-
font("mono"),
|
|
59
|
-
tracking("wide"),
|
|
60
|
-
textTransform("uppercase"),
|
|
61
|
-
fg("neutral.muted"),
|
|
62
|
-
]),
|
|
63
|
-
when('&[data-variant="chip"]', [
|
|
64
|
-
pb(0.5),
|
|
65
|
-
pi(2.5),
|
|
66
|
-
rounded("full"),
|
|
67
|
-
border({ color: "brand", width: 1, style: "solid" }),
|
|
68
|
-
bg("brand.solid"),
|
|
69
|
-
fg("brand.onSolid"),
|
|
70
|
-
tracking("wider"),
|
|
71
|
-
textTransform("uppercase"),
|
|
72
|
-
]),
|
|
73
|
-
parts?.eyebrow,
|
|
74
|
-
], children: eyebrow })) : null, _jsx(Heading, { size: "chapter", mix: [m(0), description ? mbe(2) : [], parts?.title], children: children }), description ? (_jsx("p", { mix: [
|
|
75
|
-
marketingLead(),
|
|
76
|
-
leading("relaxed"),
|
|
77
|
-
isCenter ? mi("auto") : [],
|
|
78
|
-
parts?.description,
|
|
79
|
-
], children: description })) : null] }));
|
|
80
|
-
};
|
|
81
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { borderEdge } from "@sdxc/u/color";
|
|
3
|
-
import { raw } from "@sdxc/u/general";
|
|
4
|
-
import { container, relative, vstack } from "@sdxc/u/layout";
|
|
5
|
-
import { at } from "@sdxc/u/responsive";
|
|
6
|
-
import { is, maxIs, mi, pi } from "@sdxc/u/size";
|
|
7
|
-
import { after, before } from "@sdxc/u/state";
|
|
8
|
-
import { textAlign } from "@sdxc/u/typography";
|
|
9
|
-
import { marketingBandTone, marketingContainer, marketingHairline, marketingSectionSpace, } from "../styles/marketing.js";
|
|
10
|
-
/** Band fill {@link MarketingSection} applies when `tone` is omitted. */
|
|
11
|
-
const DEFAULT_TONE = "plain";
|
|
12
|
-
/** Block padding {@link MarketingSection} applies when `spacing` is omitted. */
|
|
13
|
-
const DEFAULT_SPACING = "normal";
|
|
14
|
-
/** Content alignment {@link MarketingSection} applies when `align` is omitted. */
|
|
15
|
-
const DEFAULT_ALIGN = "start";
|
|
16
|
-
/** Chrome {@link MarketingSection} applies when `variant` is omitted. */
|
|
17
|
-
const DEFAULT_VARIANT = "default";
|
|
18
|
-
/**
|
|
19
|
-
* Renders a marketing band: tone on the `<section>`, a named container for
|
|
20
|
-
* descendant queries, and a measured inner column. When `variant="frame"`,
|
|
21
|
-
* block padding lives on that column with the dashed rails so the rails run
|
|
22
|
-
* the full band height instead of stopping at the content box.
|
|
23
|
-
*
|
|
24
|
-
* @param handle Runtime handle carrying the host `<section>`'s props.
|
|
25
|
-
* @returns The render function producing the band's markup.
|
|
26
|
-
* @example
|
|
27
|
-
* <MarketingSection tone="tinted" spacing="normal" ruled>
|
|
28
|
-
* {children}
|
|
29
|
-
* </MarketingSection>
|
|
30
|
-
* @example
|
|
31
|
-
* <MarketingSection tone="grid" spacing="hero" align="center" variant="frame">
|
|
32
|
-
* {children}
|
|
33
|
-
* </MarketingSection>
|
|
34
|
-
*/
|
|
35
|
-
export function MarketingSection(handle) {
|
|
36
|
-
return () => {
|
|
37
|
-
let { align, children, flush, mix, parts, ruled, spacing, tone, variant, ...rest } = handle.props;
|
|
38
|
-
let resolvedTone = tone ?? DEFAULT_TONE;
|
|
39
|
-
let resolvedSpacing = spacing ?? DEFAULT_SPACING;
|
|
40
|
-
let resolvedAlign = align ?? DEFAULT_ALIGN;
|
|
41
|
-
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
42
|
-
let isCenter = resolvedAlign === "center";
|
|
43
|
-
let isFrame = resolvedVariant === "frame";
|
|
44
|
-
let isFlushFrame = isFrame && Boolean(flush);
|
|
45
|
-
return (_jsx("section", { ...rest, "data-tone": resolvedTone, "data-spacing": resolvedSpacing, "data-align": resolvedAlign, "data-variant": resolvedVariant, "data-flush": isFlushFrame ? "true" : undefined, mix: [
|
|
46
|
-
container("ui-marketing-section"),
|
|
47
|
-
relative(),
|
|
48
|
-
vstack({ align: "center" }),
|
|
49
|
-
is("100%"),
|
|
50
|
-
raw({ isolation: "isolate" }),
|
|
51
|
-
marketingBandTone(resolvedTone),
|
|
52
|
-
/**
|
|
53
|
-
* Framed bands keep block padding on the measured column so the
|
|
54
|
-
* dashed rails share that box and run the full band height.
|
|
55
|
-
*/
|
|
56
|
-
isFrame ? [] : marketingSectionSpace(resolvedSpacing),
|
|
57
|
-
ruled ? marketingHairline() : [],
|
|
58
|
-
mix,
|
|
59
|
-
], children: _jsx("div", { mix: [
|
|
60
|
-
isFrame
|
|
61
|
-
? [
|
|
62
|
-
maxIs("var(--ui-marketing-measure, 72rem)"),
|
|
63
|
-
mi("auto"),
|
|
64
|
-
is("100%"),
|
|
65
|
-
/**
|
|
66
|
-
* Match the pre-migration framed band: quiet gutters that
|
|
67
|
-
* open to 3rem above `lg`, so copy clears the rails.
|
|
68
|
-
*/
|
|
69
|
-
pi(5),
|
|
70
|
-
isFlushFrame ? [] : marketingSectionSpace(resolvedSpacing),
|
|
71
|
-
at("lg", "ui-marketing-section", [
|
|
72
|
-
pi(12),
|
|
73
|
-
borderEdge("inline-start", {
|
|
74
|
-
color: "neutral",
|
|
75
|
-
width: 1,
|
|
76
|
-
style: "dashed",
|
|
77
|
-
}),
|
|
78
|
-
borderEdge("inline-end", {
|
|
79
|
-
color: "neutral",
|
|
80
|
-
width: 1,
|
|
81
|
-
style: "dashed",
|
|
82
|
-
}),
|
|
83
|
-
ruled
|
|
84
|
-
? [
|
|
85
|
-
before(frameMarker({ insetInlineStart: "-4px" })),
|
|
86
|
-
after(frameMarker({ insetInlineEnd: "-4px" })),
|
|
87
|
-
]
|
|
88
|
-
: [],
|
|
89
|
-
]),
|
|
90
|
-
]
|
|
91
|
-
: marketingContainer(),
|
|
92
|
-
vstack({
|
|
93
|
-
align: isCenter ? "center" : "stretch",
|
|
94
|
-
gap: 0,
|
|
95
|
-
}),
|
|
96
|
-
relative(),
|
|
97
|
-
is("100%"),
|
|
98
|
-
isCenter ? textAlign("center") : [],
|
|
99
|
-
parts?.container,
|
|
100
|
-
], children: children }) }));
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* The square drawn where a framed band's top rule crosses a rail, so the rails
|
|
105
|
-
* read as a frame the rule is fixed to.
|
|
106
|
-
*/
|
|
107
|
-
function frameMarker(edge) {
|
|
108
|
-
return raw({
|
|
109
|
-
content: '""',
|
|
110
|
-
position: "absolute",
|
|
111
|
-
insetBlockStart: "-4px",
|
|
112
|
-
...edge,
|
|
113
|
-
inlineSize: "7px",
|
|
114
|
-
blockSize: "7px",
|
|
115
|
-
backgroundColor: "var(--ui-brand-bg-solid)",
|
|
116
|
-
});
|
|
117
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
-
import { borderEdge, fg } from "@sdxc/u/color";
|
|
3
|
-
import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
|
|
4
|
-
import { at } from "@sdxc/u/responsive";
|
|
5
|
-
import { p } from "@sdxc/u/size";
|
|
6
|
-
import { when } from "@sdxc/u/state";
|
|
7
|
-
import { balance, leading, text, tracking, weight } from "@sdxc/u/typography";
|
|
8
|
-
/** Seam treatment {@link StatStrip} applies when `variant` is omitted. */
|
|
9
|
-
const DEFAULT_VARIANT = "ruled";
|
|
10
|
-
/**
|
|
11
|
-
* Lays {@link StatStrip.Item} children in a responsive grid. The host is the
|
|
12
|
-
* named sizing container; an inner wrapper holds the tracks and `@container`
|
|
13
|
-
* column / seam rules so the query can restyle a descendant. Starts at two
|
|
14
|
-
* columns and opens to five above `xl` (64rem), matching the landing's original
|
|
15
|
-
* viewport threshold so mid-width viewports stay a readable pair.
|
|
16
|
-
*
|
|
17
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
18
|
-
* @returns The render function producing the strip's markup.
|
|
19
|
-
* @example
|
|
20
|
-
* <StatStrip>
|
|
21
|
-
* <StatStrip.Item label={t("stats.packages")}>42</StatStrip.Item>
|
|
22
|
-
* <StatStrip.Item label={t("stats.apps")}>12</StatStrip.Item>
|
|
23
|
-
* </StatStrip>
|
|
24
|
-
*/
|
|
25
|
-
export function StatStrip(handle) {
|
|
26
|
-
return () => {
|
|
27
|
-
let { children, mix, variant, ...rest } = handle.props;
|
|
28
|
-
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
29
|
-
let isRuled = resolvedVariant === "ruled";
|
|
30
|
-
return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-slot": "stat-strip", mix: [container("ui-marketing-stat-strip"), mix], children: _jsx("div", { mix: [
|
|
31
|
-
grid(),
|
|
32
|
-
isRuled ? gap(0) : gap(6),
|
|
33
|
-
gridTemplate({ columns: repeat(2, "minmax(0, 1fr)") }),
|
|
34
|
-
at("xl", "ui-marketing-stat-strip", gridTemplate({ columns: repeat(5, "minmax(0, 1fr)") })),
|
|
35
|
-
when("& > *", [p(6, 5), at("lg", "ui-marketing-stat-strip", p(8, 8))]),
|
|
36
|
-
isRuled
|
|
37
|
-
? when("& > * + *", at("xl", "ui-marketing-stat-strip", borderEdge("inline-start", {
|
|
38
|
-
color: "neutral",
|
|
39
|
-
width: 1,
|
|
40
|
-
style: "solid",
|
|
41
|
-
})))
|
|
42
|
-
: [],
|
|
43
|
-
], children: children }) }));
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* One proof cell: the figure as `children`, and what it counts as `label`.
|
|
48
|
-
*
|
|
49
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
50
|
-
* @returns The render function producing the cell's markup.
|
|
51
|
-
* @example
|
|
52
|
-
* <StatStrip.Item label={t("stats.uptime")}>99.99%</StatStrip.Item>
|
|
53
|
-
*/
|
|
54
|
-
StatStrip.Item = function StatStripItem(handle) {
|
|
55
|
-
return () => {
|
|
56
|
-
let { children, label, mix, ...rest } = handle.props;
|
|
57
|
-
return (_jsxs("div", { ...rest, "data-slot": "stat-strip-item", mix: [vstack({ gap: 1, align: "start" }), mix], children: [_jsx("span", { mix: [
|
|
58
|
-
text("3xl"),
|
|
59
|
-
weight("medium"),
|
|
60
|
-
tracking("tight"),
|
|
61
|
-
leading("none"),
|
|
62
|
-
fg("neutral.emphasis"),
|
|
63
|
-
], children: children }), _jsx("span", { mix: [text("sm"), leading("snug"), balance(), fg("neutral")], children: label })] }));
|
|
64
|
-
};
|
|
65
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single emphasized phrase inside a marketing headline — brand color on the
|
|
3
|
-
* span so the surrounding display heading stays one weight and size.
|
|
4
|
-
*
|
|
5
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
-
* @copyright Sergio Xalambrí 2026
|
|
7
|
-
*/
|
|
8
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
9
|
-
/**
|
|
10
|
-
* Prop types for {@link AccentText}.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace AccentText {
|
|
13
|
-
/**
|
|
14
|
-
* Props accepted by {@link AccentText}.
|
|
15
|
-
*/
|
|
16
|
-
interface Props extends TagProps<"span"> {
|
|
17
|
-
/** The emphasized phrase. */
|
|
18
|
-
children: RemixNode;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Colors a phrase with the brand foreground so a display heading can stress
|
|
23
|
-
* one word without changing weight or inventing a gradient recipe.
|
|
24
|
-
*
|
|
25
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
26
|
-
* @returns The render function producing the accent span.
|
|
27
|
-
* @example
|
|
28
|
-
* <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
|
|
29
|
-
*/
|
|
30
|
-
export declare function AccentText(handle: Handle<AccentText.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { fg } from "@sdxc/u/color";
|
|
3
|
-
/**
|
|
4
|
-
* Colors a phrase with the brand foreground so a display heading can stress
|
|
5
|
-
* one word without changing weight or inventing a gradient recipe.
|
|
6
|
-
*
|
|
7
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
8
|
-
* @returns The render function producing the accent span.
|
|
9
|
-
* @example
|
|
10
|
-
* <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
|
|
11
|
-
*/
|
|
12
|
-
export function AccentText(handle) {
|
|
13
|
-
return () => {
|
|
14
|
-
let { mix, ...rest } = handle.props;
|
|
15
|
-
return _jsx("span", { ...rest, "data-slot": "accent-text", mix: [fg("brand"), mix] });
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A short announcement with a stronger rim than the default eyebrow pill —
|
|
3
|
-
* reserved for “new” / forward callouts that should read louder than a band
|
|
4
|
-
* eyebrow.
|
|
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
|
-
/**
|
|
11
|
-
* Prop types for {@link AnnouncementChip}.
|
|
12
|
-
*/
|
|
13
|
-
export declare namespace AnnouncementChip {
|
|
14
|
-
/**
|
|
15
|
-
* How the chip draws its edge: a solid brand rim, or a soft dual-tone
|
|
16
|
-
* border for a louder announcement.
|
|
17
|
-
*/
|
|
18
|
-
type Variant = "rim" | "special";
|
|
19
|
-
/**
|
|
20
|
-
* Props accepted by {@link AnnouncementChip}.
|
|
21
|
-
*/
|
|
22
|
-
interface Props extends TagProps<"span"> {
|
|
23
|
-
/** Rim treatment. Defaults to {@link DEFAULT_VARIANT}. */
|
|
24
|
-
variant?: Variant;
|
|
25
|
-
/** Announcement label — always supplied by the page. */
|
|
26
|
-
children: RemixNode;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Renders a compact announcement label. Prefer {@link MarketingHeader}'s
|
|
31
|
-
* eyebrow for ordinary section labels; reach for this when the callout itself
|
|
32
|
-
* is the news.
|
|
33
|
-
*
|
|
34
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
35
|
-
* @returns The render function producing the chip's markup.
|
|
36
|
-
* @example
|
|
37
|
-
* <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
|
|
38
|
-
* @example
|
|
39
|
-
* <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
|
|
40
|
-
*/
|
|
41
|
-
export declare function AnnouncementChip(handle: Handle<AnnouncementChip.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
5
|
-
import { inlineFlex, items } from "@sdxc/u/layout";
|
|
6
|
-
import { pb, pi } from "@sdxc/u/size";
|
|
7
|
-
import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
|
|
8
|
-
/** Rim treatment {@link AnnouncementChip} applies when `variant` is omitted. */
|
|
9
|
-
const DEFAULT_VARIANT = "rim";
|
|
10
|
-
/**
|
|
11
|
-
* Renders a compact announcement label. Prefer {@link MarketingHeader}'s
|
|
12
|
-
* eyebrow for ordinary section labels; reach for this when the callout itself
|
|
13
|
-
* is the news.
|
|
14
|
-
*
|
|
15
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
16
|
-
* @returns The render function producing the chip's markup.
|
|
17
|
-
* @example
|
|
18
|
-
* <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
|
|
19
|
-
* @example
|
|
20
|
-
* <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
|
|
21
|
-
*/
|
|
22
|
-
export function AnnouncementChip(handle) {
|
|
23
|
-
return () => {
|
|
24
|
-
let { mix, variant, ...rest } = handle.props;
|
|
25
|
-
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
26
|
-
return (_jsx("span", { ...rest, "data-slot": "announcement-chip", "data-variant": resolvedVariant, mix: [
|
|
27
|
-
inlineFlex(),
|
|
28
|
-
items("center"),
|
|
29
|
-
pb(0.5),
|
|
30
|
-
pi(2.5),
|
|
31
|
-
rounded("full"),
|
|
32
|
-
text("xs"),
|
|
33
|
-
weight("semibold"),
|
|
34
|
-
tracking("wider"),
|
|
35
|
-
textTransform("uppercase"),
|
|
36
|
-
bg("brand.tint"),
|
|
37
|
-
fg("brand"),
|
|
38
|
-
resolvedVariant === "special"
|
|
39
|
-
? raw({
|
|
40
|
-
border: "1px solid transparent",
|
|
41
|
-
backgroundImage: "linear-gradient(var(--ui-brand-bg-tint), var(--ui-brand-bg-tint)), linear-gradient(120deg, var(--ui-brand-bg-solid), color-mix(in oklab, var(--ui-brand-bg-solid) 40%, Canvas))",
|
|
42
|
-
backgroundOrigin: "border-box",
|
|
43
|
-
backgroundClip: "padding-box, border-box",
|
|
44
|
-
})
|
|
45
|
-
: border({ color: "brand", width: 1, style: "solid" }),
|
|
46
|
-
mix,
|
|
47
|
-
] }));
|
|
48
|
-
};
|
|
49
|
-
}
|
package/dist/patterns/bento.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Equal columns divided by low-contrast rules — a purpose row or claim strip
|
|
3
|
-
* that needs no card fill. Hairlines come from a 1px gap over the border token.
|
|
4
|
-
*
|
|
5
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
-
* @copyright Sergio Xalambrí 2026
|
|
7
|
-
*/
|
|
8
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
9
|
-
/**
|
|
10
|
-
* Prop types for {@link Bento} and its compound parts.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace Bento {
|
|
13
|
-
/**
|
|
14
|
-
* How many cells a wide grid puts on one row.
|
|
15
|
-
*/
|
|
16
|
-
type Columns = 2 | 3 | 4;
|
|
17
|
-
/**
|
|
18
|
-
* Props accepted by {@link Bento}.
|
|
19
|
-
*/
|
|
20
|
-
interface Props extends TagProps<"div"> {
|
|
21
|
-
/** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */
|
|
22
|
-
columns?: Columns;
|
|
23
|
-
/** {@link Bento.Cell} children to lay out. */
|
|
24
|
-
children: RemixNode;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Props accepted by {@link Bento.Cell}.
|
|
28
|
-
*/
|
|
29
|
-
interface CellProps extends TagProps<"div"> {
|
|
30
|
-
/** Cell content — typically title + body. */
|
|
31
|
-
children: RemixNode;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Props accepted by {@link Bento.Title}.
|
|
35
|
-
*/
|
|
36
|
-
interface TitleProps extends TagProps<"h1"> {
|
|
37
|
-
/** Title copy for the cell. */
|
|
38
|
-
children: RemixNode;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Props accepted by {@link Bento.Body}.
|
|
42
|
-
*/
|
|
43
|
-
interface BodyProps extends TagProps<"div"> {
|
|
44
|
-
/** Supporting copy for the cell. */
|
|
45
|
-
children: RemixNode;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
50
|
-
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
51
|
-
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
52
|
-
*
|
|
53
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
54
|
-
* @returns The render function producing the bento's markup.
|
|
55
|
-
* @example
|
|
56
|
-
* <Bento columns={3}>
|
|
57
|
-
* <Bento.Cell>
|
|
58
|
-
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
59
|
-
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
60
|
-
* </Bento.Cell>
|
|
61
|
-
* </Bento>
|
|
62
|
-
*/
|
|
63
|
-
export declare function Bento(handle: Handle<Bento.Props>): () => import("remix/component").RemixElement;
|
|
64
|
-
export declare namespace Bento {
|
|
65
|
-
var Cell: (handle: Handle<Bento.CellProps>) => () => import("remix/component").RemixElement;
|
|
66
|
-
var Title: (handle: Handle<Bento.TitleProps>) => () => import("remix/component").RemixElement;
|
|
67
|
-
var Body: (handle: Handle<Bento.BodyProps>) => () => import("remix/component").RemixElement;
|
|
68
|
-
}
|
package/dist/patterns/bento.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { border, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
5
|
-
import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
|
|
6
|
-
import { overflow } from "@sdxc/u/overflow";
|
|
7
|
-
import { at } from "@sdxc/u/responsive";
|
|
8
|
-
import { p } from "@sdxc/u/size";
|
|
9
|
-
import { leading, pretty, text, weight } from "@sdxc/u/typography";
|
|
10
|
-
import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
11
|
-
/** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
|
|
12
|
-
const DEFAULT_COLUMNS = 3;
|
|
13
|
-
/**
|
|
14
|
-
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
15
|
-
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
16
|
-
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
17
|
-
*
|
|
18
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
19
|
-
* @returns The render function producing the bento's markup.
|
|
20
|
-
* @example
|
|
21
|
-
* <Bento columns={3}>
|
|
22
|
-
* <Bento.Cell>
|
|
23
|
-
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
24
|
-
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
25
|
-
* </Bento.Cell>
|
|
26
|
-
* </Bento>
|
|
27
|
-
*/
|
|
28
|
-
export function Bento(handle) {
|
|
29
|
-
return () => {
|
|
30
|
-
let { children, columns, mix, ...rest } = handle.props;
|
|
31
|
-
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
32
|
-
return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [container("ui-marketing-bento"), mix], children: _jsx("div", { mix: [
|
|
33
|
-
grid(),
|
|
34
|
-
gap("1px"),
|
|
35
|
-
rounded("xl"),
|
|
36
|
-
overflow("hidden"),
|
|
37
|
-
border({ color: "neutral", width: 1, style: "solid" }),
|
|
38
|
-
raw({
|
|
39
|
-
backgroundColor: "var(--ui-neutral-border)",
|
|
40
|
-
textAlign: "start",
|
|
41
|
-
}),
|
|
42
|
-
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
43
|
-
at("lg", "ui-marketing-bento", [
|
|
44
|
-
gridTemplate({
|
|
45
|
-
columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
|
|
46
|
-
}),
|
|
47
|
-
]),
|
|
48
|
-
], children: children }) }));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* One bento cell. Compose {@link Bento.Title} and {@link Bento.Body} inside it.
|
|
53
|
-
*
|
|
54
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
55
|
-
* @returns The render function producing the cell's markup.
|
|
56
|
-
*/
|
|
57
|
-
Bento.Cell = function BentoCell(handle) {
|
|
58
|
-
return () => {
|
|
59
|
-
let { mix, ...rest } = handle.props;
|
|
60
|
-
return (_jsx("div", { ...rest, "data-slot": "bento-cell", mix: [
|
|
61
|
-
vstack({ gap: 3, align: "stretch" }),
|
|
62
|
-
raw({ backgroundColor: "var(--ui-bg, Canvas)" }),
|
|
63
|
-
p(6, 5),
|
|
64
|
-
at("lg", "ui-marketing-bento", p(8, 8)),
|
|
65
|
-
mix,
|
|
66
|
-
] }));
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Cell title at the ambient heading depth.
|
|
71
|
-
*
|
|
72
|
-
* @param handle Runtime handle carrying the host heading's props.
|
|
73
|
-
* @returns The render function producing the title.
|
|
74
|
-
*/
|
|
75
|
-
Bento.Title = function BentoTitle(handle) {
|
|
76
|
-
return () => {
|
|
77
|
-
let { mix, ...rest } = handle.props;
|
|
78
|
-
let resolved = resolveHeadingLevel(handle);
|
|
79
|
-
let Tag = TAG_BY_LEVEL[resolved];
|
|
80
|
-
return (_jsx(Tag, { ...rest, "data-slot": "bento-title", "data-heading-level": resolved, mix: [text("lg"), weight("medium"), fg("neutral.emphasis"), mix] }));
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Supporting copy under a bento title.
|
|
85
|
-
*
|
|
86
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
87
|
-
* @returns The render function producing the body.
|
|
88
|
-
*/
|
|
89
|
-
Bento.Body = function BentoBody(handle) {
|
|
90
|
-
return () => {
|
|
91
|
-
let { mix, ...rest } = handle.props;
|
|
92
|
-
return (_jsx("div", { ...rest, "data-slot": "bento-body", mix: [text("sm"), leading("relaxed"), pretty(), fg("neutral"), mix] }));
|
|
93
|
-
};
|
|
94
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A titled mono panel for install samples, CLI output, or code snippets on a
|
|
3
|
-
* landing. The optional actions slot holds a copy control the page supplies;
|
|
4
|
-
* the library never invents a clipboard button.
|
|
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
|
-
/**
|
|
11
|
-
* Prop types for {@link CodeStage}.
|
|
12
|
-
*/
|
|
13
|
-
export declare namespace CodeStage {
|
|
14
|
-
/**
|
|
15
|
-
* Surface treatment: a light code card, or a darker terminal panel.
|
|
16
|
-
*/
|
|
17
|
-
type Variant = "code" | "terminal";
|
|
18
|
-
/**
|
|
19
|
-
* Per-part styling for chrome the stage renders besides its host.
|
|
20
|
-
*/
|
|
21
|
-
interface PartsProps {
|
|
22
|
-
/** Styling for the optional title bar. */
|
|
23
|
-
header?: TagProps<"div">["mix"];
|
|
24
|
-
/** Styling for the mono body that wraps children. */
|
|
25
|
-
body?: TagProps<"pre">["mix"];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Props accepted by {@link CodeStage}.
|
|
29
|
-
*/
|
|
30
|
-
interface Props extends Omit<TagProps<"div">, "title"> {
|
|
31
|
-
/** Surface treatment. Defaults to {@link DEFAULT_VARIANT}. */
|
|
32
|
-
variant?: Variant;
|
|
33
|
-
/** Optional title or path shown in the header. */
|
|
34
|
-
title?: RemixNode;
|
|
35
|
-
/** Optional trailing control in the header — typically a copy button. */
|
|
36
|
-
actions?: RemixNode;
|
|
37
|
-
/** Per-part styling for header and body. */
|
|
38
|
-
parts?: PartsProps;
|
|
39
|
-
/** Mono body content — a command, snippet, or terminal output. */
|
|
40
|
-
children: RemixNode;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Renders an optional titled header and a mono body. Prefer
|
|
45
|
-
* `variant="terminal"` when the sample should read as a shell session.
|
|
46
|
-
*
|
|
47
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
48
|
-
* @returns The render function producing the stage's markup.
|
|
49
|
-
* @example
|
|
50
|
-
* <CodeStage title="install.sh" actions={copyControl}>
|
|
51
|
-
* {t("install.command")}
|
|
52
|
-
* </CodeStage>
|
|
53
|
-
* @example
|
|
54
|
-
* <CodeStage variant="terminal" title={t("cli.prompt")}>
|
|
55
|
-
* {t("cli.output")}
|
|
56
|
-
* </CodeStage>
|
|
57
|
-
*/
|
|
58
|
-
export declare function CodeStage(handle: Handle<CodeStage.Props>): () => import("remix/component").RemixElement;
|
|
59
|
-
/**
|
|
60
|
-
* Alias for {@link CodeStage} with terminal chrome — same props, same host.
|
|
61
|
-
* Prefer this name when the sample is a shell session rather than a file.
|
|
62
|
-
*/
|
|
63
|
-
export declare const TerminalPanel: typeof CodeStage;
|