@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,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { raw } from "@sdxc/u/general";
|
|
3
|
+
import { vstack } from "@sdxc/u/layout";
|
|
4
|
+
import { HeadingScope } from "../components/heading-scope.js";
|
|
5
|
+
import { Feature } from "./feature.js";
|
|
6
|
+
import { LandingHeader } from "./landing-header.js";
|
|
7
|
+
import { LandingSection } from "./landing-section.js";
|
|
8
|
+
import { Split } from "./split.js";
|
|
9
|
+
import { StepList } from "./step-list.js";
|
|
10
|
+
import { TabbedStage } from "./tabbed-stage.js";
|
|
11
|
+
/** Layout {@link FeatureBand} applies when `layout` is omitted. */
|
|
12
|
+
const DEFAULT_LAYOUT = "split";
|
|
13
|
+
/** Radio group name a `stage` band uses when it has neither `stageName` nor `id`. */
|
|
14
|
+
const DEFAULT_STAGE_NAME = "feature-band-stage";
|
|
15
|
+
/** Band fill {@link FeatureBand} applies when `tone` is omitted. */
|
|
16
|
+
const DEFAULT_TONE = "plain";
|
|
17
|
+
/**
|
|
18
|
+
* Renders a feature band with a chapter header and a split, grid, steps, timeline,
|
|
19
|
+
* or stage body. A split with media carries its header in the copy column, so copy and
|
|
20
|
+
* media share one grid; cell and step titles sit one heading level under the band title.
|
|
21
|
+
*
|
|
22
|
+
* @param handle Runtime handle carrying the band's props.
|
|
23
|
+
* @returns The render function producing the band's markup.
|
|
24
|
+
* @example
|
|
25
|
+
* <FeatureBand layout="split" title={t("f1.title")} description={t("f1.lead")} media={shot}>
|
|
26
|
+
* <ul><li>{t("f1.claim")}</li></ul>
|
|
27
|
+
* </FeatureBand>
|
|
28
|
+
* @example
|
|
29
|
+
* <FeatureBand layout="stage" id="how" title={t("how.title")}>
|
|
30
|
+
* <TabbedStage.Item value="detect" label={t("how.detect")} defaultChecked>{shot}</TabbedStage.Item>
|
|
31
|
+
* </FeatureBand>
|
|
32
|
+
* @example
|
|
33
|
+
* <FeatureBand layout="timeline" title={t("incident.title")}>
|
|
34
|
+
* <StepList.Item meta="14:02 UTC" title={t("incident.detect")}>{t("incident.body")}</StepList.Item>
|
|
35
|
+
* </FeatureBand>
|
|
36
|
+
*/
|
|
37
|
+
export function FeatureBand(handle) {
|
|
38
|
+
return () => {
|
|
39
|
+
let { children, columns, gridVariant, description, eyebrow, eyebrowHref, eyebrowIndex, eyebrowVariant, id, layout, lean, media, mix, parts, ruled, spacing, stageLabel, stageName, title, tone, ...rest } = handle.props;
|
|
40
|
+
let resolvedLayout = layout ?? DEFAULT_LAYOUT;
|
|
41
|
+
let resolvedTone = tone ?? DEFAULT_TONE;
|
|
42
|
+
let resolvedSpacing = spacing ?? "normal";
|
|
43
|
+
let body = _jsx("div", { mix: [vstack({ gap: 4, align: "stretch" })], children: children });
|
|
44
|
+
let isSplit = resolvedLayout === "split" && media !== undefined;
|
|
45
|
+
let isSelfScoped = resolvedLayout === "grid" || resolvedLayout === "steps" || resolvedLayout === "timeline";
|
|
46
|
+
if (resolvedLayout === "grid") {
|
|
47
|
+
body = (_jsx(Feature.Grid, { columns: columns, variant: gridVariant, children: children }));
|
|
48
|
+
}
|
|
49
|
+
else if (resolvedLayout === "steps") {
|
|
50
|
+
body = _jsx(StepList, { children: children });
|
|
51
|
+
}
|
|
52
|
+
else if (resolvedLayout === "timeline") {
|
|
53
|
+
body = _jsx(StepList, { variant: "timeline", children: children });
|
|
54
|
+
}
|
|
55
|
+
else if (resolvedLayout === "stage") {
|
|
56
|
+
body = (_jsx(TabbedStage, { name: stageName ?? (id ? `${id}-stage` : DEFAULT_STAGE_NAME), orientation: "vertical", "aria-label": stageLabel ?? (typeof title === "string" ? title : ""), children: children }));
|
|
57
|
+
}
|
|
58
|
+
let header = (_jsx(LandingHeader, { eyebrow: eyebrow, eyebrowHref: eyebrowHref, eyebrowIndex: eyebrowIndex, eyebrowVariant: eyebrowVariant, description: description, mix: isSplit ? [raw({ "--ui-landing-header-end": "0" })] : [], parts: {
|
|
59
|
+
title: parts?.title,
|
|
60
|
+
description: parts?.description,
|
|
61
|
+
}, children: title }));
|
|
62
|
+
if (isSplit) {
|
|
63
|
+
return (_jsx(LandingSection, { ...rest, id: id, tone: resolvedTone, spacing: resolvedSpacing, ruled: ruled, mix: mix, children: _jsxs(Split, { lean: lean, children: [_jsxs(Split.Copy, { checks: Boolean(children), children: [header, _jsx(HeadingScope, { children: children })] }), _jsx(Split.Media, { mix: [parts?.media], children: _jsx(HeadingScope, { children: media }) })] }) }));
|
|
64
|
+
}
|
|
65
|
+
return (_jsx(LandingSection, { ...rest, id: id, tone: resolvedTone, spacing: resolvedSpacing, ruled: ruled, mix: mix, children: _jsxs("div", { mix: [vstack({ gap: 0, align: "stretch" })], children: [header, isSelfScoped ? body : _jsx(HeadingScope, { children: body })] }) }));
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One landing claim cell — icon, media, title, description, an optional link
|
|
3
|
+
* pinned to its foot — and an optional {@link Feature.Grid} that lays cells as separate
|
|
4
|
+
* cards or a hairline mosaic via container queries. Also ships the card-grid,
|
|
5
|
+
* card-media and icon-tile style factories the bento pattern shares.
|
|
6
|
+
*
|
|
7
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
|
+
* @copyright Sergio Xalambrí 2026
|
|
9
|
+
*/
|
|
10
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
11
|
+
/**
|
|
12
|
+
* Prop types for {@link Feature} and its compound parts.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace Feature {
|
|
15
|
+
/**
|
|
16
|
+
* Cell chrome: a light claim with no fill, or a panel when the cell itself
|
|
17
|
+
* is the interaction surface. A panel belongs outside a {@link Feature.Grid},
|
|
18
|
+
* which draws its own cell chrome.
|
|
19
|
+
*/
|
|
20
|
+
type Variant = "plain" | "panel";
|
|
21
|
+
/**
|
|
22
|
+
* How many cells a wide {@link Feature.Grid} puts on one row.
|
|
23
|
+
*/
|
|
24
|
+
type Columns = 2 | 3;
|
|
25
|
+
/**
|
|
26
|
+
* Grid chrome: separate raised `cards` with larger outer corners, one `mosaic` box
|
|
27
|
+
* whose 1px gaps draw hairlines between flush cells, or an un-carded `list` whose
|
|
28
|
+
* cells set the icon beside the title and copy.
|
|
29
|
+
*/
|
|
30
|
+
type GridVariant = "cards" | "mosaic" | "list";
|
|
31
|
+
/** What a {@link Feature.Grid} tells the cells inside it. */
|
|
32
|
+
interface GridContext {
|
|
33
|
+
/** The grid's chrome, which decides the cell's padding and layout. */
|
|
34
|
+
variant: GridVariant;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Glyph tile: a `quiet` hairline ring in the heading ink, or a `brand`
|
|
38
|
+
* tinted and bordered badge.
|
|
39
|
+
*/
|
|
40
|
+
type IconTone = "quiet" | "brand";
|
|
41
|
+
/**
|
|
42
|
+
* Props accepted by {@link Feature}.
|
|
43
|
+
*/
|
|
44
|
+
interface Props extends TagProps<"div"> {
|
|
45
|
+
/**
|
|
46
|
+
* Tracks the cell spans from the grid's widest step, for a grid of mixed spans; it
|
|
47
|
+
* spans the whole row where the grid has fewer tracks. Name the grid's outer
|
|
48
|
+
* corners with `data-corner` on the cells that hold them.
|
|
49
|
+
*/
|
|
50
|
+
span?: 2 | 3;
|
|
51
|
+
/** Cell chrome. Defaults to {@link DEFAULT_VARIANT}. */
|
|
52
|
+
variant?: Variant;
|
|
53
|
+
/**
|
|
54
|
+
* Destination for the claim, exposed as `data-href`; the navigation itself is a
|
|
55
|
+
* {@link Feature.Link} inside {@link Feature.Action}, which makes the cell its hit target.
|
|
56
|
+
*/
|
|
57
|
+
href?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Compound parts: {@link Feature.Media}, {@link Feature.Icon},
|
|
60
|
+
* {@link Feature.Title}, {@link Feature.Description},
|
|
61
|
+
* {@link Feature.Action}, or other content.
|
|
62
|
+
*/
|
|
63
|
+
children: RemixNode;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Props accepted by {@link Feature.Icon}.
|
|
67
|
+
*/
|
|
68
|
+
interface IconProps extends TagProps<"span"> {
|
|
69
|
+
/** Tile chrome. Defaults to {@link DEFAULT_ICON_TONE}. */
|
|
70
|
+
tone?: IconTone;
|
|
71
|
+
/** Glyph rendered inside the tile. */
|
|
72
|
+
children: RemixNode;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Props accepted by {@link Feature.Media}.
|
|
76
|
+
*/
|
|
77
|
+
interface MediaProps extends TagProps<"div"> {
|
|
78
|
+
/** Illustration or screenshot drawn edge to edge at the top of the cell. */
|
|
79
|
+
children: RemixNode;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Props accepted by {@link Feature.Title}. The rendered tag follows the
|
|
83
|
+
* nearest ambient heading level.
|
|
84
|
+
*/
|
|
85
|
+
interface TitleProps extends TagProps<"h1"> {
|
|
86
|
+
/** Title copy for the claim. */
|
|
87
|
+
children: RemixNode;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Props accepted by {@link Feature.Description}.
|
|
91
|
+
*/
|
|
92
|
+
interface DescriptionProps extends TagProps<"div"> {
|
|
93
|
+
/** Supporting copy for the claim; `<strong>` fragments render in the heading ink. */
|
|
94
|
+
children: RemixNode;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Props accepted by {@link Feature.Action}.
|
|
98
|
+
*/
|
|
99
|
+
interface ActionProps extends TagProps<"div"> {
|
|
100
|
+
/** Trailing link or button chrome for the claim. */
|
|
101
|
+
children: RemixNode;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Props accepted by {@link Feature.Link}. A type alias, since the native anchor props
|
|
105
|
+
* resolve through a conditional type an interface cannot extend.
|
|
106
|
+
*/
|
|
107
|
+
type LinkProps = TagProps<"a"> & {
|
|
108
|
+
/** Where the claim is argued in full; the whole cell navigates there. */
|
|
109
|
+
href: string;
|
|
110
|
+
/** The link label, followed by a trailing arrow. */
|
|
111
|
+
children: RemixNode;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Props accepted by {@link Feature.Grid}.
|
|
115
|
+
*/
|
|
116
|
+
interface GridProps extends TagProps<"div"> {
|
|
117
|
+
/** Columns at the `lg` container. Defaults to {@link DEFAULT_COLUMNS}. */
|
|
118
|
+
columns?: Columns;
|
|
119
|
+
/** Grid chrome. Defaults to {@link DEFAULT_GRID_VARIANT}. */
|
|
120
|
+
variant?: GridVariant;
|
|
121
|
+
/** {@link Feature} cells to lay out. */
|
|
122
|
+
children: RemixNode;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Renders one claim cell. Compose {@link Feature.Media}, {@link Feature.Icon},
|
|
127
|
+
* {@link Feature.Title}, {@link Feature.Description}, and
|
|
128
|
+
* {@link Feature.Action} inside it.
|
|
129
|
+
*
|
|
130
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
131
|
+
* @returns The render function producing the cell's markup.
|
|
132
|
+
* @example
|
|
133
|
+
* <Feature>
|
|
134
|
+
* <Feature.Icon><ZapIcon size={18} aria-hidden="true" /></Feature.Icon>
|
|
135
|
+
* <Feature.Title>{t("feature.title")}</Feature.Title>
|
|
136
|
+
* <Feature.Description>{t("feature.body")}</Feature.Description>
|
|
137
|
+
* </Feature>
|
|
138
|
+
*/
|
|
139
|
+
export declare function Feature(handle: Handle<Feature.Props>): () => import("remix/component").RemixElement;
|
|
140
|
+
export declare namespace Feature {
|
|
141
|
+
var Icon: (handle: Handle<Feature.IconProps>) => () => import("remix/component").RemixElement;
|
|
142
|
+
var Media: (handle: Handle<Feature.MediaProps>) => () => import("remix/component").RemixElement;
|
|
143
|
+
var Title: (handle: Handle<Feature.TitleProps>) => () => import("remix/component").RemixElement;
|
|
144
|
+
var Description: (handle: Handle<Feature.DescriptionProps>) => () => import("remix/component").RemixElement;
|
|
145
|
+
var Action: (handle: Handle<Feature.ActionProps>) => () => import("remix/component").RemixElement;
|
|
146
|
+
var Link: (handle: Handle<Feature.LinkProps>) => () => import("remix/component").RemixElement;
|
|
147
|
+
var Grid: (handle: Handle<Feature.GridProps, Feature.GridContext>) => () => import("remix/component").RemixElement;
|
|
148
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { ArrowRightIcon } from "@sdxc/icons";
|
|
3
|
+
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
4
|
+
import { rounded } from "@sdxc/u/effects";
|
|
5
|
+
import { raw, mergeMix } from "@sdxc/u/general";
|
|
6
|
+
import { container, gap, hstack, inlineFlex, items, vstack } from "@sdxc/u/layout";
|
|
7
|
+
import { motionSafe } from "@sdxc/u/responsive";
|
|
8
|
+
import { m, pbs } from "@sdxc/u/size";
|
|
9
|
+
import { when } from "@sdxc/u/state";
|
|
10
|
+
import { balance, leading, pretty, text, textDecoration, weight } from "@sdxc/u/typography";
|
|
11
|
+
import { HeadingScope, resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
12
|
+
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
13
|
+
import { landingEmphasis } from "../styles/landing.js";
|
|
14
|
+
import { cardGrid, cardMedia, cardPadding, ICON_TILE_SIDE, iconTile } from "./styles/card-grid.js";
|
|
15
|
+
/** Cell chrome {@link Feature} applies when `variant` is omitted. */
|
|
16
|
+
const DEFAULT_VARIANT = "plain";
|
|
17
|
+
/** How many cells a wide {@link Feature.Grid} puts on one row. */
|
|
18
|
+
const DEFAULT_COLUMNS = 2;
|
|
19
|
+
/** Grid chrome {@link Feature.Grid} applies when `variant` is omitted. */
|
|
20
|
+
const DEFAULT_GRID_VARIANT = "cards";
|
|
21
|
+
/** Glyph tile {@link Feature.Icon} draws when `tone` is omitted. */
|
|
22
|
+
const DEFAULT_ICON_TONE = "quiet";
|
|
23
|
+
/**
|
|
24
|
+
* Renders one claim cell. Compose {@link Feature.Media}, {@link Feature.Icon},
|
|
25
|
+
* {@link Feature.Title}, {@link Feature.Description}, and
|
|
26
|
+
* {@link Feature.Action} inside it.
|
|
27
|
+
*
|
|
28
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
29
|
+
* @returns The render function producing the cell's markup.
|
|
30
|
+
* @example
|
|
31
|
+
* <Feature>
|
|
32
|
+
* <Feature.Icon><ZapIcon size={18} aria-hidden="true" /></Feature.Icon>
|
|
33
|
+
* <Feature.Title>{t("feature.title")}</Feature.Title>
|
|
34
|
+
* <Feature.Description>{t("feature.body")}</Feature.Description>
|
|
35
|
+
* </Feature>
|
|
36
|
+
*/
|
|
37
|
+
export function Feature(handle) {
|
|
38
|
+
return () => {
|
|
39
|
+
let { href, mix, span, variant, ...rest } = handle.props;
|
|
40
|
+
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
41
|
+
let grid = handle.context.get(Feature.Grid);
|
|
42
|
+
let isListed = grid?.variant === "list";
|
|
43
|
+
return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-href": href || undefined, "data-span": span ? String(span) : undefined, "data-slot": "feature", mix: mergeMix([
|
|
44
|
+
isListed
|
|
45
|
+
? listCell()
|
|
46
|
+
: [vstack({ gap: 4, align: "stretch" }), cardPadding("2rem", "1.5rem", "2.5rem")],
|
|
47
|
+
raw({ position: "relative" }),
|
|
48
|
+
when('&:hover [data-slot="feature-link"]', textDecoration("underline")),
|
|
49
|
+
when('&:hover [data-slot="feature-link-arrow"]', motionSafe(raw({ translate: "2px 0" }))),
|
|
50
|
+
when('&[data-variant="panel"]', [
|
|
51
|
+
bg("neutral.tint"),
|
|
52
|
+
border({ color: "neutral", width: 1, style: "solid" }),
|
|
53
|
+
rounded("xl"),
|
|
54
|
+
]),
|
|
55
|
+
], mix) }));
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Glyph tile that leads the claim, quiet by default.
|
|
60
|
+
*
|
|
61
|
+
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
62
|
+
* @returns The render function producing the icon tile.
|
|
63
|
+
*/
|
|
64
|
+
Feature.Icon = function FeatureIcon(handle) {
|
|
65
|
+
return () => {
|
|
66
|
+
let { mix, tone, ...rest } = handle.props;
|
|
67
|
+
let resolvedTone = tone ?? DEFAULT_ICON_TONE;
|
|
68
|
+
return (_jsx("span", { ...rest, "data-slot": "feature-icon", "data-tone": resolvedTone, mix: mergeMix(iconTile(resolvedTone, ICON_TILE_SIDE), mix) }));
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Illustration at the top of the cell, bleeding past the cell padding and
|
|
73
|
+
* fading into the fill; hidden below the `md` container. Place it first.
|
|
74
|
+
*
|
|
75
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
76
|
+
* @returns The render function producing the media area.
|
|
77
|
+
*/
|
|
78
|
+
Feature.Media = function FeatureMedia(handle) {
|
|
79
|
+
return () => {
|
|
80
|
+
let { mix, ...rest } = handle.props;
|
|
81
|
+
return _jsx("div", { ...rest, "data-slot": "feature-media", mix: mergeMix(cardMedia(), mix) });
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Claim title at the ambient heading depth, sized for a feature cell.
|
|
86
|
+
*
|
|
87
|
+
* @param handle Runtime handle carrying the host heading's props.
|
|
88
|
+
* @returns The render function producing the title.
|
|
89
|
+
*/
|
|
90
|
+
Feature.Title = function FeatureTitle(handle) {
|
|
91
|
+
return () => {
|
|
92
|
+
let { mix, ...rest } = handle.props;
|
|
93
|
+
let resolved = resolveHeadingLevel(handle);
|
|
94
|
+
let Tag = TAG_BY_LEVEL[resolved];
|
|
95
|
+
return (_jsx(Tag, { ...rest, "data-slot": "feature-title", "data-heading-level": resolved, mix: mergeMix([m(0), text("base"), balance(), weight("semibold"), fg("neutral.emphasis")], mix) }));
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Supporting copy under the claim title, with emphasis fragments in the heading ink.
|
|
100
|
+
*
|
|
101
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
102
|
+
* @returns The render function producing the description.
|
|
103
|
+
*/
|
|
104
|
+
Feature.Description = function FeatureDescription(handle) {
|
|
105
|
+
return () => {
|
|
106
|
+
let { mix, ...rest } = handle.props;
|
|
107
|
+
return (_jsx("div", { ...rest, "data-slot": "feature-description", mix: mergeMix([
|
|
108
|
+
/**
|
|
109
|
+
* Block flow, so an inline `<strong>` stays inside its sentence; paragraphs a
|
|
110
|
+
* page passes are spaced by their own margin.
|
|
111
|
+
*/
|
|
112
|
+
when("& > * + *", raw({ marginBlockStart: "0.5rem" })),
|
|
113
|
+
/** Lifts inline links above a {@link Feature.Link} stretched over the cell. */
|
|
114
|
+
when("& a", raw({ position: "relative", zIndex: "1" })),
|
|
115
|
+
text("base"),
|
|
116
|
+
leading("relaxed"),
|
|
117
|
+
pretty(),
|
|
118
|
+
fg("neutral"),
|
|
119
|
+
landingEmphasis(),
|
|
120
|
+
], mix) }));
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Trailing action slot for a link or button under the claim body, pinned to the foot of
|
|
125
|
+
* the cell so the actions of cells sharing a grid row line up however long each claim's
|
|
126
|
+
* copy runs.
|
|
127
|
+
*
|
|
128
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
129
|
+
* @returns The render function producing the action slot.
|
|
130
|
+
*/
|
|
131
|
+
Feature.Action = function FeatureAction(handle) {
|
|
132
|
+
return () => {
|
|
133
|
+
let { mix, ...rest } = handle.props;
|
|
134
|
+
return (_jsx("div", { ...rest, "data-slot": "feature-action", mix: mergeMix([raw({ marginBlockStart: "auto" }), pbs(2), hstack({ gap: 2 })], mix) }));
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Quiet brand-coloured link with a trailing arrow, for a {@link Feature.Action}. The whole
|
|
139
|
+
* cell is its hit target, and links inside the description stay clickable above it; the
|
|
140
|
+
* arrow nudges forward on hover unless the visitor asks for reduced motion.
|
|
141
|
+
*
|
|
142
|
+
* @param handle Runtime handle carrying the host `<a>`'s props.
|
|
143
|
+
* @returns The render function producing the link.
|
|
144
|
+
* @example
|
|
145
|
+
* <Feature.Action><Feature.Link href="/docs/versioning">{t("versioning.link")}</Feature.Link></Feature.Action>
|
|
146
|
+
*/
|
|
147
|
+
Feature.Link = function FeatureLink(handle) {
|
|
148
|
+
return () => {
|
|
149
|
+
let { children, mix, ...rest } = handle.props;
|
|
150
|
+
return (_jsxs("a", { ...rest, "data-slot": "feature-link", mix: mergeMix([
|
|
151
|
+
inlineFlex(),
|
|
152
|
+
items("center"),
|
|
153
|
+
gap(1),
|
|
154
|
+
text("sm"),
|
|
155
|
+
weight("medium"),
|
|
156
|
+
fg("brand"),
|
|
157
|
+
textDecoration("none"),
|
|
158
|
+
rounded("sm"),
|
|
159
|
+
interactiveTransition(),
|
|
160
|
+
raw({ textUnderlineOffset: "0.2em" }),
|
|
161
|
+
when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
162
|
+
when("&::after", raw({ content: '""', position: "absolute", inset: "0" })),
|
|
163
|
+
], mix), children: [children, _jsx(ArrowRightIcon, { size: 14, "aria-hidden": "true", "data-slot": "feature-link-arrow", mix: [motionSafe(raw({ transition: "translate 150ms" }))] })] }));
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Grid of {@link Feature} cells, as separate cards by default. The host is the
|
|
168
|
+
* named sizing container; an inner wrapper holds the tracks so the query can
|
|
169
|
+
* restyle a descendant: one column on a phone, two from the `md` container
|
|
170
|
+
* (36rem), `columns` from `lg` (48rem). Cell titles render one heading level
|
|
171
|
+
* below the grid's surroundings.
|
|
172
|
+
*
|
|
173
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
174
|
+
* @returns The render function producing the grid.
|
|
175
|
+
* @example
|
|
176
|
+
* <Feature.Grid columns={3}>
|
|
177
|
+
* <Feature>...</Feature>
|
|
178
|
+
* <Feature>...</Feature>
|
|
179
|
+
* <Feature>...</Feature>
|
|
180
|
+
* </Feature.Grid>
|
|
181
|
+
*/
|
|
182
|
+
Feature.Grid = function FeatureGrid(handle) {
|
|
183
|
+
return () => {
|
|
184
|
+
let { children, columns, mix, variant, ...rest } = handle.props;
|
|
185
|
+
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
186
|
+
let resolvedVariant = variant ?? DEFAULT_GRID_VARIANT;
|
|
187
|
+
handle.context.set({ variant: resolvedVariant });
|
|
188
|
+
return (_jsx("div", { ...rest, "data-columns": String(resolvedColumns), "data-variant": resolvedVariant, "data-slot": "feature-grid", mix: mergeMix(container("ui-landing-feature-grid"), mix), children: _jsx(HeadingScope, { children: _jsx("div", { mix: [
|
|
189
|
+
cardGrid({
|
|
190
|
+
columns: resolvedColumns,
|
|
191
|
+
variant: resolvedVariant,
|
|
192
|
+
containerName: "ui-landing-feature-grid",
|
|
193
|
+
}),
|
|
194
|
+
], children: children }) }) }));
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* A cell in a `list` grid: no padding or fill, the icon in its own column beside the
|
|
199
|
+
* title, copy and action, so a row of claims reads as a list of short paragraphs.
|
|
200
|
+
*/
|
|
201
|
+
function listCell() {
|
|
202
|
+
return [
|
|
203
|
+
raw({
|
|
204
|
+
display: "grid",
|
|
205
|
+
gridTemplateColumns: "auto minmax(0, 1fr)",
|
|
206
|
+
columnGap: "1rem",
|
|
207
|
+
rowGap: "0.5rem",
|
|
208
|
+
alignContent: "start",
|
|
209
|
+
}),
|
|
210
|
+
when('& > :not([data-slot="feature-icon"])', raw({ gridColumn: "2" })),
|
|
211
|
+
when('& > [data-slot="feature-icon"]', raw({ gridColumn: "1", gridRow: "1 / span 3" })),
|
|
212
|
+
when('& > [data-slot="feature-media"]', raw({ display: "none" })),
|
|
213
|
+
when('&:not(:has(> [data-slot="feature-icon"]))', [
|
|
214
|
+
raw({ gridTemplateColumns: "minmax(0, 1fr)" }),
|
|
215
|
+
when("& > *", raw({ gridColumn: "1" })),
|
|
216
|
+
]),
|
|
217
|
+
when('& > [data-slot="feature-title"]', raw({ alignSelf: "center", minBlockSize: "2.5rem", display: "flex", alignItems: "center" })),
|
|
218
|
+
];
|
|
219
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An animated walk through one automated run: a trigger fires, each step passes in order
|
|
3
|
+
* along a rail, and the run settles on its outcome, then loops. It pictures a pipeline, a
|
|
4
|
+
* scheduled check or an onboarding flow with the product's own step names and syntax.
|
|
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 FlowDiagram}.
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace FlowDiagram {
|
|
14
|
+
/** The row the run starts from, such as a schedule or a push. */
|
|
15
|
+
interface Trigger {
|
|
16
|
+
/** Glyph inside the trigger's dot, drawn in the brand ink. */
|
|
17
|
+
icon?: RemixNode;
|
|
18
|
+
title: RemixNode;
|
|
19
|
+
/** Quieter line under the title, such as the interval. */
|
|
20
|
+
detail?: RemixNode;
|
|
21
|
+
}
|
|
22
|
+
/** One step of the run. */
|
|
23
|
+
interface Step {
|
|
24
|
+
title: RemixNode;
|
|
25
|
+
/** Quieter line under the title. */
|
|
26
|
+
detail?: RemixNode;
|
|
27
|
+
/** The step's source line, set in mono under the title in place of `detail`. */
|
|
28
|
+
code?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Props accepted by {@link FlowDiagram}.
|
|
32
|
+
*/
|
|
33
|
+
interface Props extends Omit<TagProps<"div">, "children"> {
|
|
34
|
+
/** Accessible name of the run's list. Required — the library ships no copy. */
|
|
35
|
+
"aria-label": string;
|
|
36
|
+
/** Accessible name of the pause toggle. */
|
|
37
|
+
pauseLabel?: string;
|
|
38
|
+
trigger: Trigger;
|
|
39
|
+
/** The steps, in run order. */
|
|
40
|
+
steps: readonly Step[];
|
|
41
|
+
/** The result badge that appears once the last step passes, such as "Run passed". */
|
|
42
|
+
outcome: RemixNode;
|
|
43
|
+
/** A note across from the outcome, such as what happens on failure. */
|
|
44
|
+
footnote?: RemixNode;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Renders the run as an ordered list on a raised surface inside a {@link MotionLoop}.
|
|
49
|
+
* Without motion, or before the animation starts, every step shows as passed, so the
|
|
50
|
+
* static picture is the finished run. Two diagrams with the same step count share keyframes.
|
|
51
|
+
*
|
|
52
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
53
|
+
* @returns The render function producing the diagram's markup.
|
|
54
|
+
* @example
|
|
55
|
+
* <FlowDiagram
|
|
56
|
+
* aria-label="Sign-in check"
|
|
57
|
+
* trigger={{ icon: <ClockIcon size={14} />, title: "Every 5 minutes" }}
|
|
58
|
+
* steps={[{ title: "Sign in", code: 'http.post "/api/sessions"' }]}
|
|
59
|
+
* outcome="Run passed"
|
|
60
|
+
* />
|
|
61
|
+
*/
|
|
62
|
+
export declare function FlowDiagram(handle: Handle<FlowDiagram.Props>): () => import("remix/component").RemixElement;
|