@sdxc/ui 2026.10.30 → 2026.11.3
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/app/app-shell-toggle.d.ts +31 -0
- package/dist/app/app-shell-toggle.js +43 -0
- package/dist/app/app-shell.d.ts +131 -0
- package/dist/app/app-shell.js +542 -0
- package/dist/app/auto-refresh.d.ts +104 -0
- package/dist/app/auto-refresh.js +126 -0
- package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
- package/dist/app/behaviors/refresh-schedule.js +95 -0
- package/dist/app/behaviors/shortcuts.d.ts +175 -0
- package/dist/app/behaviors/shortcuts.js +401 -0
- package/dist/{behaviors → app/behaviors}/toaster.d.ts +31 -2
- package/dist/{behaviors → app/behaviors}/toaster.js +63 -6
- package/dist/{components → app}/chart.d.ts +63 -9
- package/dist/{components → app}/chart.js +222 -40
- package/dist/app/command-palette.d.ts +132 -0
- package/dist/app/command-palette.js +181 -0
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/app/danger-zone.d.ts +66 -0
- package/dist/app/danger-zone.js +66 -0
- package/dist/app/detail-sheet.d.ts +119 -0
- package/dist/app/detail-sheet.js +173 -0
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.d.ts +2 -1
- package/dist/{components → app}/drop-zone.js +7 -4
- package/dist/app/editor-layout.d.ts +69 -0
- package/dist/app/editor-layout.js +143 -0
- package/dist/app/empty.d.ts +128 -0
- package/dist/app/empty.js +248 -0
- package/dist/{components → app}/file-trigger.js +2 -2
- package/dist/app/filter-bar.d.ts +169 -0
- package/dist/app/filter-bar.js +346 -0
- 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 +92 -0
- package/dist/app/index.js +92 -0
- package/dist/app/keyboard-help.d.ts +66 -0
- package/dist/app/keyboard-help.js +56 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/app/mixins/app-shell-controls.d.ts +46 -0
- package/dist/app/mixins/app-shell-controls.js +131 -0
- package/dist/app/mixins/auto-refresh.d.ts +29 -0
- package/dist/app/mixins/auto-refresh.js +66 -0
- package/dist/app/mixins/command-palette.d.ts +56 -0
- package/dist/app/mixins/command-palette.js +297 -0
- package/dist/app/mixins/copy-permalink.d.ts +26 -0
- package/dist/app/mixins/copy-permalink.js +54 -0
- package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
- package/dist/app/mixins/detail-sheet-keys.js +88 -0
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/app/mixins/escape-link.d.ts +17 -0
- package/dist/app/mixins/escape-link.js +35 -0
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/app/mixins/keyboard-help.d.ts +38 -0
- package/dist/app/mixins/keyboard-help.js +51 -0
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
- package/dist/app/mixins/range-picker-keys.d.ts +18 -0
- package/dist/app/mixins/range-picker-keys.js +94 -0
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/app/mixins/row-navigation.d.ts +85 -0
- package/dist/app/mixins/row-navigation.js +208 -0
- package/dist/app/mixins/save-bar-sync.d.ts +27 -0
- package/dist/app/mixins/save-bar-sync.js +106 -0
- package/dist/app/mixins/save-shortcut.d.ts +47 -0
- package/dist/app/mixins/save-shortcut.js +101 -0
- package/dist/app/mixins/save-status-sync.d.ts +77 -0
- package/dist/app/mixins/save-status-sync.js +159 -0
- package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
- package/dist/app/mixins/selection-bar-sync.js +151 -0
- package/dist/app/mixins/split-view.d.ts +66 -0
- package/dist/app/mixins/split-view.js +319 -0
- package/dist/app/mixins/status-strip-keys.d.ts +17 -0
- package/dist/app/mixins/status-strip-keys.js +79 -0
- package/dist/app/mixins/submit-on-change.d.ts +16 -0
- package/dist/app/mixins/submit-on-change.js +28 -0
- package/dist/app/mixins/table-selection.d.ts +39 -0
- package/dist/app/mixins/table-selection.js +272 -0
- package/dist/app/mixins/toast-queue.d.ts +36 -0
- package/dist/app/mixins/toast-queue.js +77 -0
- package/dist/app/mixins/toast-stack.d.ts +20 -0
- package/dist/app/mixins/toast-stack.js +55 -0
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/app/optimistic-toggle.d.ts +48 -0
- package/dist/app/optimistic-toggle.js +38 -0
- package/dist/app/page-header.d.ts +71 -0
- package/dist/app/page-header.js +249 -0
- package/dist/app/range-picker.d.ts +102 -0
- package/dist/app/range-picker.js +118 -0
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/app/save-bar.d.ts +54 -0
- package/dist/app/save-bar.js +64 -0
- package/dist/app/save-status.d.ts +50 -0
- package/dist/app/save-status.js +54 -0
- package/dist/app/selection-bar.d.ts +101 -0
- package/dist/app/selection-bar.js +157 -0
- package/dist/app/settings-layout.d.ts +70 -0
- package/dist/app/settings-layout.js +112 -0
- package/dist/app/settings-section.d.ts +140 -0
- package/dist/app/settings-section.js +182 -0
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/app/skeleton.d.ts +79 -0
- package/dist/app/skeleton.js +185 -0
- package/dist/app/sparkline.d.ts +61 -0
- package/dist/app/sparkline.js +145 -0
- package/dist/app/split-view.d.ts +154 -0
- package/dist/app/split-view.js +272 -0
- package/dist/app/stat-card.d.ts +109 -0
- package/dist/app/stat-card.js +379 -0
- package/dist/app/status-strip.d.ts +70 -0
- package/dist/app/status-strip.js +155 -0
- package/dist/app/styles/action-row.d.ts +41 -0
- package/dist/app/styles/action-row.js +59 -0
- 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/app/styles/stat-delta.d.ts +29 -0
- package/dist/app/styles/stat-delta.js +36 -0
- package/dist/app/styles/toast-stack.d.ts +21 -0
- package/dist/app/styles/toast-stack.js +54 -0
- package/dist/app/table.d.ts +327 -0
- package/dist/app/table.js +839 -0
- package/dist/{components → app}/toast.d.ts +105 -5
- package/dist/{components → app}/toast.js +101 -35
- package/dist/app/toasts.d.ts +49 -0
- package/dist/app/toasts.js +103 -0
- 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/app/utils/app-shell-cookie.d.ts +21 -0
- package/dist/app/utils/app-shell-cookie.js +33 -0
- package/dist/{utils → app/utils}/chart-marker-indices.d.ts +9 -5
- package/dist/{utils → app/utils}/chart-marker-indices.js +9 -8
- package/dist/{utils → app/utils}/chart-path.d.ts +15 -11
- package/dist/{utils → app/utils}/chart-path.js +48 -20
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- package/dist/app/utils/edited-time.d.ts +19 -0
- package/dist/app/utils/edited-time.js +35 -0
- package/dist/app/utils/key-target.d.ts +23 -0
- package/dist/app/utils/key-target.js +48 -0
- package/dist/app/utils/search-params.d.ts +69 -0
- package/dist/app/utils/search-params.js +132 -0
- package/dist/app/utils/shortcut-groups.d.ts +21 -0
- package/dist/app/utils/shortcut-groups.js +53 -0
- package/dist/app/utils/split-view-layout.d.ts +48 -0
- package/dist/app/utils/split-view-layout.js +71 -0
- package/dist/app/view-options.d.ts +99 -0
- package/dist/app/view-options.js +182 -0
- 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/banner.d.ts +61 -0
- package/dist/components/banner.js +101 -0
- 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/confirm.d.ts +54 -5
- package/dist/components/confirm.js +44 -5
- 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.d.ts +14 -0
- package/dist/components/group.js +68 -13
- 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 +11 -38
- package/dist/components/index.js +11 -38
- package/dist/components/input.js +12 -7
- 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 +24 -13
- 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/property-list.d.ts +76 -0
- package/dist/components/property-list.js +175 -0
- package/dist/components/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- package/dist/components/relative-time.d.ts +72 -0
- package/dist/components/relative-time.js +45 -0
- 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/status-dot.d.ts +62 -0
- package/dist/components/status-dot.js +99 -0
- 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.d.ts +17 -2
- package/dist/components/text-field.js +14 -4
- 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/timeline.d.ts +67 -0
- package/dist/components/timeline.js +159 -0
- package/dist/components/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.d.ts +2 -1
- package/dist/components/typeset.js +131 -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 +67 -0
- package/dist/docs/docs-feedback.js +74 -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 +57 -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 +50 -0
- package/dist/docs/docs-pager.js +75 -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 +124 -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 +80 -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/confirm-phrase.d.ts +19 -0
- package/dist/mixins/confirm-phrase.js +56 -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 +4 -15
- package/dist/mixins/index.js +4 -15
- package/dist/mixins/viewer-time.d.ts +20 -0
- package/dist/mixins/viewer-time.js +40 -0
- package/dist/styles/index.d.ts +3 -5
- package/dist/styles/index.js +3 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/segmented-control.d.ts +49 -0
- package/dist/styles/segmented-control.js +71 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/test/table.d.ts +65 -0
- package/dist/test/table.js +108 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +2 -5
- package/dist/utils/index.js +2 -5
- package/dist/utils/relative-time.d.ts +44 -0
- package/dist/utils/relative-time.js +69 -0
- package/package.json +16 -6
- package/src/theme.css +87 -22
- package/dist/components/empty.d.ts +0 -91
- package/dist/components/empty.js +0 -151
- 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/skeleton.d.ts +0 -36
- package/dist/components/skeleton.js +0 -38
- package/dist/components/stat-strip.js +0 -65
- package/dist/components/table.d.ts +0 -152
- package/dist/components/table.js +0 -238
- 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/{components → app}/drop-indicator.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/{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}/toolbar.d.ts +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,201 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "remix/component/jsx-runtime";
|
|
2
|
+
import { fg, outline } from "@sdxc/u/color";
|
|
3
|
+
import { combine, raw, mergeMix } from "@sdxc/u/general";
|
|
4
|
+
import { container } from "@sdxc/u/layout";
|
|
5
|
+
import { at } from "@sdxc/u/responsive";
|
|
6
|
+
import { focusVisible, when } from "@sdxc/u/state";
|
|
7
|
+
import { font, lineClamp, pretty, weight } from "@sdxc/u/typography";
|
|
8
|
+
import { Heading } from "../components/heading.js";
|
|
9
|
+
/** Container the strip queries to pick its column count. */
|
|
10
|
+
const STRIP_CONTAINER = "ui-changelog-strip";
|
|
11
|
+
/** Translucent ink the rule draws with. */
|
|
12
|
+
const HAIRLINE = "var(--ui-landing-hairline, color-mix(in oklch, CanvasText 8%, transparent))";
|
|
13
|
+
/** Room above the row for the dots, which rise 3px over the rule. */
|
|
14
|
+
const DOT_ROOM = "4px";
|
|
15
|
+
/**
|
|
16
|
+
* Counts the elements among the strip's children, flattening mapped arrays, so the column
|
|
17
|
+
* plan follows the number of entries a page actually renders.
|
|
18
|
+
*
|
|
19
|
+
* @param children The strip's `children` value.
|
|
20
|
+
* @returns How many entries the strip holds.
|
|
21
|
+
*/
|
|
22
|
+
function countEntries(children) {
|
|
23
|
+
if (Array.isArray(children)) {
|
|
24
|
+
return children.reduce((total, child) => total + countEntries(child), 0);
|
|
25
|
+
}
|
|
26
|
+
return typeof children === "object" && children !== null ? 1 : 0;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Columns an odd or even count takes from the `md` container: pairs when even, threes when
|
|
30
|
+
* a multiple of three, and none (the row keeps scrolling) when either would orphan one.
|
|
31
|
+
*
|
|
32
|
+
* @param count How many entries the strip holds.
|
|
33
|
+
* @returns The `md` column count, if any.
|
|
34
|
+
*/
|
|
35
|
+
function mdColumns(count) {
|
|
36
|
+
if (count % 2 === 0)
|
|
37
|
+
return 2;
|
|
38
|
+
if (count % 3 === 0)
|
|
39
|
+
return 3;
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Picks the columns for each container step so no row ends with a single orphaned entry:
|
|
44
|
+
* an even count pairs up at `md`, four or three across at `lg`, and a count no grid divides
|
|
45
|
+
* cleanly (five) keeps scrolling until five fit across at `xl`.
|
|
46
|
+
*
|
|
47
|
+
* @param count How many entries the strip holds.
|
|
48
|
+
* @returns The columns to apply at each step.
|
|
49
|
+
*/
|
|
50
|
+
function changelogColumns(count) {
|
|
51
|
+
if (count <= 1)
|
|
52
|
+
return { base: 1 };
|
|
53
|
+
if (count <= 3)
|
|
54
|
+
return { md: count };
|
|
55
|
+
if (count === 5)
|
|
56
|
+
return { xl: 5 };
|
|
57
|
+
let md = mdColumns(count);
|
|
58
|
+
if (count % 4 === 0)
|
|
59
|
+
return { md, lg: 4 };
|
|
60
|
+
if (count % 3 === 0)
|
|
61
|
+
return { md, lg: 3 };
|
|
62
|
+
if (count % 4 !== 1)
|
|
63
|
+
return { md, lg: 4 };
|
|
64
|
+
if (count % 3 !== 1)
|
|
65
|
+
return { md, lg: 3 };
|
|
66
|
+
return { md };
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Turns the scrolling row into a grid of `columns` equal tracks, with the same rule line
|
|
70
|
+
* running unbroken across each row.
|
|
71
|
+
*/
|
|
72
|
+
function gridAt(step, columns) {
|
|
73
|
+
if (!columns)
|
|
74
|
+
return [];
|
|
75
|
+
return at(step, STRIP_CONTAINER, raw(gridStyles(columns)));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Grid declarations for `columns` equal tracks, replacing the scrolling row's flex,
|
|
79
|
+
* overflow and snapping.
|
|
80
|
+
*/
|
|
81
|
+
function gridStyles(columns) {
|
|
82
|
+
return {
|
|
83
|
+
display: "grid",
|
|
84
|
+
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
|
|
85
|
+
rowGap: "2.5rem",
|
|
86
|
+
overflowX: "visible",
|
|
87
|
+
scrollSnapType: "none",
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Renders recent releases as an ordered list on one hairline. The column count comes from
|
|
92
|
+
* the entry count (see {@link changelogColumns}); below the first grid step the list is a
|
|
93
|
+
* snapping sideways row of ~80% wide entries that scrolls inside its own box.
|
|
94
|
+
*
|
|
95
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
96
|
+
* @returns The render function producing the strip.
|
|
97
|
+
* @example
|
|
98
|
+
* <ChangelogStrip title={t("changelog.title")} action={<a href="/changelog">{t("changelog.all")}</a>}>
|
|
99
|
+
* <ChangelogStrip.Entry dateTime="2026-10-28" date="Oct 28" title={t("cl.status")} href="/changelog/status">
|
|
100
|
+
* {t("cl.status.body")}
|
|
101
|
+
* </ChangelogStrip.Entry>
|
|
102
|
+
* </ChangelogStrip>
|
|
103
|
+
*/
|
|
104
|
+
export function ChangelogStrip(handle) {
|
|
105
|
+
return () => {
|
|
106
|
+
let { action, "aria-label": ariaLabel, children, mix, title, ...rest } = handle.props;
|
|
107
|
+
let plan = changelogColumns(countEntries(children));
|
|
108
|
+
let header = title || action ? (_jsxs("div", { "data-slot": "changelog-strip-header", mix: [
|
|
109
|
+
raw({
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexWrap: "wrap",
|
|
112
|
+
alignItems: "baseline",
|
|
113
|
+
justifyContent: "space-between",
|
|
114
|
+
gap: "0.5rem 1.5rem",
|
|
115
|
+
marginBlockEnd: "2rem",
|
|
116
|
+
}),
|
|
117
|
+
], children: [title ? _jsx(Heading, { children: title }) : _jsx("span", {}), action ? _jsx("div", { "data-slot": "changelog-strip-action", children: action }) : null] })) : null;
|
|
118
|
+
return (_jsxs("div", { ...rest, "data-slot": "changelog-strip", mix: mergeMix([container(STRIP_CONTAINER), raw({ minInlineSize: "0" })], mix), children: [header, _jsx("ol", { "aria-label": ariaLabel, "data-slot": "changelog-strip-list", mix: [
|
|
119
|
+
raw({
|
|
120
|
+
display: "flex",
|
|
121
|
+
margin: "0",
|
|
122
|
+
padding: "0",
|
|
123
|
+
paddingBlockStart: DOT_ROOM,
|
|
124
|
+
marginBlockStart: `-${DOT_ROOM}`,
|
|
125
|
+
listStyle: "none",
|
|
126
|
+
overflowX: "auto",
|
|
127
|
+
overscrollBehaviorInline: "contain",
|
|
128
|
+
scrollSnapType: "x mandatory",
|
|
129
|
+
scrollbarWidth: "thin",
|
|
130
|
+
...(plan.base ? gridStyles(plan.base) : {}),
|
|
131
|
+
}),
|
|
132
|
+
gridAt("md", plan.md),
|
|
133
|
+
gridAt("lg", plan.lg),
|
|
134
|
+
gridAt("xl", plan.xl),
|
|
135
|
+
], children: children })] }));
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* One release: a dot on the rule, the date in mono, the title, and a two-line summary.
|
|
140
|
+
* With `href` the whole entry is a single link whose focus ring sits inside the entry,
|
|
141
|
+
* so the scrolling row never clips it.
|
|
142
|
+
*
|
|
143
|
+
* @param handle Runtime handle carrying the `<li>`'s props.
|
|
144
|
+
* @returns The render function producing the entry.
|
|
145
|
+
*/
|
|
146
|
+
ChangelogStrip.Entry = function ChangelogStripEntry(handle) {
|
|
147
|
+
return () => {
|
|
148
|
+
let { children, date, dateTime, href, mix, title, ...rest } = handle.props;
|
|
149
|
+
let body = (_jsxs(_Fragment, { children: [_jsx("time", { dateTime: dateTime, mix: [
|
|
150
|
+
font("mono"),
|
|
151
|
+
raw({ display: "block", fontSize: "0.75rem", lineHeight: "1rem" }),
|
|
152
|
+
fg("neutral.muted"),
|
|
153
|
+
], children: date }), _jsx("span", { "data-slot": "changelog-strip-title", mix: [
|
|
154
|
+
raw({
|
|
155
|
+
display: "block",
|
|
156
|
+
marginBlockStart: "0.5rem",
|
|
157
|
+
fontSize: "0.9375rem",
|
|
158
|
+
lineHeight: "1.5rem",
|
|
159
|
+
}),
|
|
160
|
+
weight("medium"),
|
|
161
|
+
fg("neutral.emphasis"),
|
|
162
|
+
pretty(),
|
|
163
|
+
], children: title }), children ? (_jsx("span", { "data-slot": "changelog-strip-body", mix: [
|
|
164
|
+
raw({ marginBlockStart: "0.25rem", fontSize: "0.9375rem", lineHeight: "1.5rem" }),
|
|
165
|
+
fg("neutral"),
|
|
166
|
+
lineClamp(2),
|
|
167
|
+
], children: children })) : null] }));
|
|
168
|
+
return (_jsx("li", { ...rest, "data-slot": "changelog-strip-entry", mix: mergeMix(combine([
|
|
169
|
+
raw({
|
|
170
|
+
position: "relative",
|
|
171
|
+
flex: "0 0 min(80%, 20rem)",
|
|
172
|
+
minInlineSize: "0",
|
|
173
|
+
borderBlockStart: `1px solid ${HAIRLINE}`,
|
|
174
|
+
scrollSnapAlign: "start",
|
|
175
|
+
}),
|
|
176
|
+
when("&::before", raw({
|
|
177
|
+
content: '""',
|
|
178
|
+
position: "absolute",
|
|
179
|
+
insetBlockStart: "-4px",
|
|
180
|
+
insetInlineStart: "0",
|
|
181
|
+
inlineSize: "7px",
|
|
182
|
+
blockSize: "7px",
|
|
183
|
+
borderRadius: "9999px",
|
|
184
|
+
backgroundColor: "var(--ui-neutral-fg-muted)",
|
|
185
|
+
})),
|
|
186
|
+
when("&:has(a:hover, a:focus-visible)::before", raw({ backgroundColor: "var(--ui-brand-bg-solid)" })),
|
|
187
|
+
]), mix), children: href ? (_jsx("a", { href: href, "data-slot": "changelog-strip-link", mix: [
|
|
188
|
+
raw({
|
|
189
|
+
display: "block",
|
|
190
|
+
blockSize: "100%",
|
|
191
|
+
paddingBlock: "1.25rem 0.25rem",
|
|
192
|
+
paddingInlineEnd: "1.5rem",
|
|
193
|
+
color: "inherit",
|
|
194
|
+
textDecoration: "none",
|
|
195
|
+
borderRadius: "0.25rem",
|
|
196
|
+
}),
|
|
197
|
+
when("&:hover [data-slot=changelog-strip-title]", raw({ textDecoration: "underline", textUnderlineOffset: "0.2em" })),
|
|
198
|
+
focusVisible(outline({ color: "brand.ring", offset: -2 })),
|
|
199
|
+
], children: body })) : (_jsx("div", { mix: [raw({ paddingBlock: "1.25rem 0.25rem", paddingInlineEnd: "1.5rem" })], children: body })) }));
|
|
200
|
+
};
|
|
201
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
|
-
import { raw } from "@sdxc/u/general";
|
|
3
|
+
import { raw, mergeMix } from "@sdxc/u/general";
|
|
4
4
|
import { flexWrap, gap, inlineFlex, items, vstack } from "@sdxc/u/layout";
|
|
5
5
|
import { when } from "@sdxc/u/state";
|
|
6
6
|
import { leading, text } from "@sdxc/u/typography";
|
|
@@ -30,13 +30,12 @@ export function CheckList(handle) {
|
|
|
30
30
|
let { mix, orientation, ...rest } = handle.props;
|
|
31
31
|
let resolvedOrientation = orientation ?? DEFAULT_ORIENTATION;
|
|
32
32
|
let isHorizontal = resolvedOrientation === "horizontal";
|
|
33
|
-
return (_jsx("ul", { ...rest, "data-slot": "check-list", "data-orientation": resolvedOrientation, mix: [
|
|
33
|
+
return (_jsx("ul", { ...rest, "data-slot": "check-list", "data-orientation": resolvedOrientation, mix: mergeMix([
|
|
34
34
|
raw({ listStyle: "none", padding: "0", margin: "0" }),
|
|
35
35
|
isHorizontal
|
|
36
36
|
? [inlineFlex(), flexWrap(), items("center"), gap(4)]
|
|
37
37
|
: [vstack({ gap: 2.5, align: "stretch" })],
|
|
38
|
-
|
|
39
|
-
] }));
|
|
38
|
+
], mix) }));
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
@@ -51,7 +50,7 @@ export function CheckList(handle) {
|
|
|
51
50
|
export function CheckRow(handle) {
|
|
52
51
|
return () => {
|
|
53
52
|
let { mix, ...rest } = handle.props;
|
|
54
|
-
return (_jsx("li", { ...rest, "data-slot": "check-row", mix: [
|
|
53
|
+
return (_jsx("li", { ...rest, "data-slot": "check-row", mix: mergeMix([
|
|
55
54
|
raw({
|
|
56
55
|
position: "relative",
|
|
57
56
|
paddingInlineStart: "1.75rem",
|
|
@@ -70,7 +69,6 @@ export function CheckRow(handle) {
|
|
|
70
69
|
mask: CHECK_MASK,
|
|
71
70
|
WebkitMask: CHECK_MASK,
|
|
72
71
|
})),
|
|
73
|
-
|
|
74
|
-
] }));
|
|
72
|
+
], mix) }));
|
|
75
73
|
};
|
|
76
74
|
}
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
* @copyright Sergio Xalambrí 2026
|
|
7
7
|
*/
|
|
8
8
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
9
|
-
import {
|
|
9
|
+
import { LandingSection } from "./landing-section.js";
|
|
10
10
|
/**
|
|
11
11
|
* Prop types for {@link ClosingCta}.
|
|
12
12
|
*/
|
|
13
13
|
export declare namespace ClosingCta {
|
|
14
14
|
/**
|
|
15
|
-
* Band fill forwarded to {@link
|
|
15
|
+
* Band fill forwarded to {@link LandingSection}. Prefer `"inverse"` or
|
|
16
16
|
* `"tinted"` so the close reads as a distinct final statement.
|
|
17
17
|
*/
|
|
18
|
-
type Tone =
|
|
18
|
+
type Tone = LandingSection.Tone;
|
|
19
19
|
/**
|
|
20
20
|
* Per-part styling for slots the band composes.
|
|
21
21
|
*/
|
|
@@ -30,7 +30,7 @@ export declare namespace ClosingCta {
|
|
|
30
30
|
/**
|
|
31
31
|
* Props accepted by {@link ClosingCta}.
|
|
32
32
|
*/
|
|
33
|
-
interface Props extends Omit<
|
|
33
|
+
interface Props extends Omit<LandingSection.Props, "children" | "tone" | "align" | "title" | "parts"> {
|
|
34
34
|
/** Band fill. Defaults to {@link DEFAULT_TONE}. */
|
|
35
35
|
tone?: Tone;
|
|
36
36
|
/** Optional eyebrow above the title. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { raw } from "@sdxc/u/general";
|
|
2
3
|
import { vstack } from "@sdxc/u/layout";
|
|
3
4
|
import { CtaGroup } from "../components/cta-group.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { MarketingSection } from "../components/marketing-section.js";
|
|
5
|
+
import { LandingHeader } from "./landing-header.js";
|
|
6
|
+
import { LandingSection } from "./landing-section.js";
|
|
7
7
|
/** Band fill {@link ClosingCta} applies when `tone` is omitted. */
|
|
8
8
|
const DEFAULT_TONE = "inverse";
|
|
9
9
|
/**
|
|
@@ -22,10 +22,10 @@ export function ClosingCta(handle) {
|
|
|
22
22
|
return () => {
|
|
23
23
|
let { actions, description, eyebrow, mix, parts, spacing, title, tone, ...rest } = handle.props;
|
|
24
24
|
let resolvedTone = tone ?? DEFAULT_TONE;
|
|
25
|
-
let resolvedSpacing = spacing ?? "
|
|
26
|
-
return (_jsx(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
let resolvedSpacing = spacing ?? "cta";
|
|
26
|
+
return (_jsx(LandingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, align: "center", mix: mix, children: _jsxs("div", { mix: [vstack({ gap: 8, align: "center" })], children: [_jsx(LandingHeader, { eyebrow: eyebrow, description: description, align: "center", mix: [raw({ "--ui-landing-header-end": "0" })], parts: {
|
|
27
|
+
title: parts?.title,
|
|
28
|
+
description: parts?.description,
|
|
29
|
+
}, children: title }), actions ? _jsx(CtaGroup, { mix: [parts?.actions], children: actions }) : null] }) }));
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A titled mono panel for install samples, CLI output, or code snippets on a
|
|
3
|
+
* landing, optionally highlighted, numbered, or split into file tabs that switch
|
|
4
|
+
* through a radio group alone. The actions slot holds a copy control the page supplies.
|
|
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 raised code card, a darker terminal panel, or a slab
|
|
16
|
+
* that stays dark in both schemes and holds a translucent code sheet.
|
|
17
|
+
*/
|
|
18
|
+
type Variant = "code" | "terminal" | "slab";
|
|
19
|
+
/**
|
|
20
|
+
* One file of a tabbed stage: the tab's label and the source its panel shows.
|
|
21
|
+
*/
|
|
22
|
+
interface Tab {
|
|
23
|
+
/** Visible tab label, typically a file name. */
|
|
24
|
+
label: RemixNode;
|
|
25
|
+
/** Optional glyph drawn before the label. */
|
|
26
|
+
icon?: RemixNode;
|
|
27
|
+
/** Source the panel shows; a string highlights and numbers. */
|
|
28
|
+
content: RemixNode;
|
|
29
|
+
/** Language this file highlights as; falls back to the stage's `language`. */
|
|
30
|
+
language?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Per-part styling for chrome the stage renders besides its host.
|
|
34
|
+
*/
|
|
35
|
+
interface PartsProps {
|
|
36
|
+
/** Styling for the optional title bar. */
|
|
37
|
+
header?: TagProps<"div">["mix"];
|
|
38
|
+
/** Styling for each mono body that wraps code. */
|
|
39
|
+
body?: TagProps<"pre">["mix"];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Props accepted by {@link CodeStage}.
|
|
43
|
+
*/
|
|
44
|
+
interface Props extends Omit<TagProps<"div">, "title"> {
|
|
45
|
+
/** Surface treatment. Defaults to {@link DEFAULT_VARIANT}. */
|
|
46
|
+
variant?: Variant;
|
|
47
|
+
/** Optional title or path shown in the header; tabs take its place. */
|
|
48
|
+
title?: RemixNode;
|
|
49
|
+
/** Optional trailing control in the header — typically a copy button. */
|
|
50
|
+
actions?: RemixNode;
|
|
51
|
+
/**
|
|
52
|
+
* Highlights string content as this language (any name or alias
|
|
53
|
+
* `@sdxc/highlight` resolves). Element children render as given.
|
|
54
|
+
*/
|
|
55
|
+
language?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Numbers each line in a gutter beside the code. Numbering reads lines from
|
|
58
|
+
* a string; any other content renders unnumbered.
|
|
59
|
+
*/
|
|
60
|
+
lineNumbers?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Files shown as header tabs, switched by a radio group with no script; the
|
|
63
|
+
* first is selected and the stage keeps the tallest file's height.
|
|
64
|
+
*/
|
|
65
|
+
tabs?: Tab[];
|
|
66
|
+
/** Radio group name for `tabs`; defaults to an id unique to this stage. */
|
|
67
|
+
name?: string;
|
|
68
|
+
/** Per-part styling for header and body. */
|
|
69
|
+
parts?: PartsProps;
|
|
70
|
+
/** Mono body content when `tabs` is omitted — a command, snippet, or output. */
|
|
71
|
+
children?: RemixNode;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Renders an optional titled or tabbed header and a mono body that keeps every
|
|
76
|
+
* line intact and scrolls sideways inside the panel when a line outgrows it.
|
|
77
|
+
* The stage takes its content's height, so beside taller copy it sits at the top.
|
|
78
|
+
*
|
|
79
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
80
|
+
* @returns The render function producing the stage's markup.
|
|
81
|
+
* @example
|
|
82
|
+
* <CodeStage title="install.sh" actions={copyControl}>bun add @sdxc/ui</CodeStage>
|
|
83
|
+
* @example
|
|
84
|
+
* <CodeStage variant="slab" language="ts" lineNumbers>{snippet}</CodeStage>
|
|
85
|
+
* @example
|
|
86
|
+
* <CodeStage tabs={[{ label: "worker.ts", content: worker, language: "ts" }]} />
|
|
87
|
+
*/
|
|
88
|
+
export declare function CodeStage(handle: Handle<CodeStage.Props>): () => import("remix/component").RemixElement;
|
|
89
|
+
/**
|
|
90
|
+
* Alias for {@link CodeStage} with terminal chrome — same props, same host.
|
|
91
|
+
* Prefer this name when the sample is a shell session rather than a file.
|
|
92
|
+
*/
|
|
93
|
+
export declare const TerminalPanel: typeof CodeStage;
|