@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,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An animated feed of events landing one by one, newest on top, with the exception
|
|
3
|
+
* surfaced: checks pass every few minutes and the one that broke names its failing step,
|
|
4
|
+
* feed items arrive, jobs finish. It proves continuous activity without a screenshot.
|
|
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 EventTicker}.
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace EventTicker {
|
|
14
|
+
/** Outcome of one event, drawn as a success, warning, danger or neutral chip. */
|
|
15
|
+
type Status = "ok" | "warn" | "fail" | "pending";
|
|
16
|
+
/** What a row turns into partway through its life, such as a pending job finishing. */
|
|
17
|
+
interface Flip {
|
|
18
|
+
status: Status;
|
|
19
|
+
/** Quieter line that replaces the row's `detail`. */
|
|
20
|
+
detail?: RemixNode;
|
|
21
|
+
/** Mono line that replaces the row's `code`. */
|
|
22
|
+
code?: string;
|
|
23
|
+
}
|
|
24
|
+
/** One event of the feed. */
|
|
25
|
+
interface Row {
|
|
26
|
+
/** When it happened, set in mono, such as "09:42". */
|
|
27
|
+
time: string;
|
|
28
|
+
label: RemixNode;
|
|
29
|
+
status: Status;
|
|
30
|
+
/** Quieter line under the label; a failed row tints it in the danger tone. */
|
|
31
|
+
detail?: RemixNode;
|
|
32
|
+
/** The detail set in mono in place of `detail`, such as the failing step's source. */
|
|
33
|
+
code?: string;
|
|
34
|
+
/** The status, and optionally the detail, the row settles on; the finished state shows it. */
|
|
35
|
+
flipTo?: Flip;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Props accepted by {@link EventTicker}.
|
|
39
|
+
*/
|
|
40
|
+
interface Props extends Omit<TagProps<"div">, "children" | "title"> {
|
|
41
|
+
/** Accessible name of the feed's list. Required — the library ships no copy. */
|
|
42
|
+
"aria-label": string;
|
|
43
|
+
/** Accessible name of the pause toggle. */
|
|
44
|
+
pauseLabel?: string;
|
|
45
|
+
/** Header line over the feed, drawn beside a live dot. */
|
|
46
|
+
title?: RemixNode;
|
|
47
|
+
/** The events, oldest first; the feed renders them newest first. */
|
|
48
|
+
rows: readonly Row[];
|
|
49
|
+
/** The text of each status chip, such as `{ ok: "Passed", fail: "Failed", … }`. */
|
|
50
|
+
statusLabels: Record<Status, string>;
|
|
51
|
+
/** A note under the feed, such as how often the checks run. */
|
|
52
|
+
footnote?: RemixNode;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Renders the feed as an ordered list on a raised surface inside a {@link MotionLoop}.
|
|
57
|
+
* Each row opens in its turn at the top and pushes the older ones down; a hidden copy of
|
|
58
|
+
* the finished feed holds the surface's height, so the page never shifts while it loops.
|
|
59
|
+
* Without motion every row shows with its final status. Equal row counts share keyframes.
|
|
60
|
+
*
|
|
61
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
62
|
+
* @returns The render function producing the ticker's markup.
|
|
63
|
+
* @example
|
|
64
|
+
* <EventTicker
|
|
65
|
+
* aria-label="Recent checks"
|
|
66
|
+
* title="Checkout flow"
|
|
67
|
+
* rows={[{ time: "09:40", label: "Run passed", status: "ok" }]}
|
|
68
|
+
* statusLabels={{ ok: "Passed", warn: "Slow", fail: "Failed", pending: "Running" }}
|
|
69
|
+
* />
|
|
70
|
+
*/
|
|
71
|
+
export declare function EventTicker(handle: Handle<EventTicker.Props>): () => import("remix/component").RemixElement;
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { keyframes } from "@sdxc/u/animation";
|
|
3
|
+
import { raw } from "@sdxc/u/general";
|
|
4
|
+
import { motionSafe } from "@sdxc/u/responsive";
|
|
5
|
+
import { landingSurface } from "../styles/landing.js";
|
|
6
|
+
import { MotionLoop } from "./motion-loop.js";
|
|
7
|
+
/** Length of one loop: the rows land, the feed holds, then it empties for the next loop. */
|
|
8
|
+
const CYCLE_SECONDS = 10;
|
|
9
|
+
/** Percent of the cycle at which the oldest row lands. */
|
|
10
|
+
const FIRST_ROW_AT = 6;
|
|
11
|
+
/** Most percent of the cycle between one row landing and the next. */
|
|
12
|
+
const MAX_ROW_GAP = 14;
|
|
13
|
+
/** Percent of the cycle the rows share, so a long feed still leaves time to hold. */
|
|
14
|
+
const ROWS_SPAN = 58;
|
|
15
|
+
/** Percent of the cycle a landing row takes to open to its full height. */
|
|
16
|
+
const EXPAND_SPAN = 3;
|
|
17
|
+
/** Percent of the cycle between a row landing and its `flipTo` status replacing the first. */
|
|
18
|
+
const FLIP_AFTER = 9;
|
|
19
|
+
/** Percent of the cycle the chips take to cross-fade. */
|
|
20
|
+
const FLIP_SPAN = 2;
|
|
21
|
+
/** Percent of the cycle at which every row fades out for the next loop. */
|
|
22
|
+
const RESET_AT = 94;
|
|
23
|
+
/** Name of the live dot's pulse, shared by every ticker since it reads no row data. */
|
|
24
|
+
const PULSE_KEYFRAMES = "ui-event-ticker-pulse";
|
|
25
|
+
/**
|
|
26
|
+
* Room the header keeps at its end for the pause toggle pinned to the surface's top
|
|
27
|
+
* corner, so a title that wraps on a phone stays clear of the button.
|
|
28
|
+
*/
|
|
29
|
+
const PAUSE_CLEARANCE = "2.75rem";
|
|
30
|
+
/** The theme tone each status's chip and dot draw from. */
|
|
31
|
+
const STATUS_TONES = {
|
|
32
|
+
ok: "success",
|
|
33
|
+
warn: "warning",
|
|
34
|
+
fail: "danger",
|
|
35
|
+
pending: "neutral",
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Renders the feed as an ordered list on a raised surface inside a {@link MotionLoop}.
|
|
39
|
+
* Each row opens in its turn at the top and pushes the older ones down; a hidden copy of
|
|
40
|
+
* the finished feed holds the surface's height, so the page never shifts while it loops.
|
|
41
|
+
* Without motion every row shows with its final status. Equal row counts share keyframes.
|
|
42
|
+
*
|
|
43
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
44
|
+
* @returns The render function producing the ticker's markup.
|
|
45
|
+
* @example
|
|
46
|
+
* <EventTicker
|
|
47
|
+
* aria-label="Recent checks"
|
|
48
|
+
* title="Checkout flow"
|
|
49
|
+
* rows={[{ time: "09:40", label: "Run passed", status: "ok" }]}
|
|
50
|
+
* statusLabels={{ ok: "Passed", warn: "Slow", fail: "Failed", pending: "Running" }}
|
|
51
|
+
* />
|
|
52
|
+
*/
|
|
53
|
+
export function EventTicker(handle) {
|
|
54
|
+
return () => {
|
|
55
|
+
let { "aria-label": label, footnote, mix, pauseLabel, rows, statusLabels, title, ...rest } = handle.props;
|
|
56
|
+
let timing = timingFor(rows.length);
|
|
57
|
+
let newestFirst = rows.map((row, index) => ({ row, index })).reverse();
|
|
58
|
+
return (_jsx(MotionLoop, { ...rest, pauseLabel: pauseLabel, placement: "start-end", mix: mix, children: _jsxs("div", { "data-slot": "event-ticker", mix: [
|
|
59
|
+
landingSurface(),
|
|
60
|
+
raw({
|
|
61
|
+
display: "grid",
|
|
62
|
+
gap: "0.75rem",
|
|
63
|
+
padding: "clamp(1.25rem, 4cqi, 2rem)",
|
|
64
|
+
}),
|
|
65
|
+
title === undefined ? raw({ paddingBlockStart: "3.25rem" }) : [],
|
|
66
|
+
], children: [title === undefined ? null : (_jsxs("div", { "data-slot": "event-ticker-header", mix: [
|
|
67
|
+
raw({
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
gap: "0.5rem",
|
|
71
|
+
minBlockSize: "2rem",
|
|
72
|
+
paddingInlineEnd: PAUSE_CLEARANCE,
|
|
73
|
+
}),
|
|
74
|
+
], children: [_jsx("span", { "aria-hidden": "true", mix: [liveDot()] }), _jsx("span", { mix: [
|
|
75
|
+
raw({
|
|
76
|
+
fontSize: "0.9375rem",
|
|
77
|
+
lineHeight: "1.5rem",
|
|
78
|
+
fontWeight: "600",
|
|
79
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
80
|
+
minInlineSize: "0",
|
|
81
|
+
}),
|
|
82
|
+
], children: title })] })), _jsxs("div", { mix: [raw({ display: "grid", alignItems: "start" })], children: [_jsx("ol", { "aria-label": label, mix: [list()], children: newestFirst.map(({ row, index }) => (_jsx(RowItem, { row: row, index: index, timing: timing, statusLabels: statusLabels }, index))) }), _jsx("ol", { "aria-hidden": "true", inert: true, "data-slot": "event-ticker-sizer", mix: [
|
|
83
|
+
list(),
|
|
84
|
+
raw({ display: "none", visibility: "hidden" }),
|
|
85
|
+
motionSafe(raw({ display: "grid" })),
|
|
86
|
+
], children: newestFirst.map(({ row, index }) => (_jsx(RowItem, { row: row, index: index, statusLabels: statusLabels }, index))) })] }), footnote === undefined ? null : (_jsx("div", { "data-slot": "event-ticker-footnote", mix: [
|
|
87
|
+
quiet(),
|
|
88
|
+
raw({
|
|
89
|
+
display: "flex",
|
|
90
|
+
flexWrap: "wrap",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
gap: "0.375rem",
|
|
93
|
+
paddingBlockStart: "0.25rem",
|
|
94
|
+
}),
|
|
95
|
+
], children: footnote }))] }) }));
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/** Spreads `count` rows over {@link ROWS_SPAN}, never further apart than {@link MAX_ROW_GAP}. */
|
|
99
|
+
function timingFor(count) {
|
|
100
|
+
return { count, gap: count > 0 ? Math.min(MAX_ROW_GAP, ROWS_SPAN / count) : MAX_ROW_GAP };
|
|
101
|
+
}
|
|
102
|
+
/** Percent of the cycle at which row `index` (counting from the oldest) lands. */
|
|
103
|
+
function landsAt(timing, index) {
|
|
104
|
+
return round(FIRST_ROW_AT + index * timing.gap);
|
|
105
|
+
}
|
|
106
|
+
/** Rounds a keyframe offset to two decimals, so generated stops stay readable. */
|
|
107
|
+
function round(value) {
|
|
108
|
+
return Math.round(value * 100) / 100;
|
|
109
|
+
}
|
|
110
|
+
/** The animation declarations every moving element shares: one linear loop of the cycle. */
|
|
111
|
+
function loop(name) {
|
|
112
|
+
return {
|
|
113
|
+
animationName: name,
|
|
114
|
+
animationDuration: `${CYCLE_SECONDS}s`,
|
|
115
|
+
animationTimingFunction: "linear",
|
|
116
|
+
animationIterationCount: "infinite",
|
|
117
|
+
animationFillMode: "both",
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* One event: its time, label and status chip over the detail line. A row with `flipTo`
|
|
122
|
+
* stacks both chips and both details in one cell and cross-fades them; at rest only the
|
|
123
|
+
* final pair shows and the first is hidden from assistive technology.
|
|
124
|
+
*/
|
|
125
|
+
function RowItem(handle) {
|
|
126
|
+
return () => {
|
|
127
|
+
let { index, row, statusLabels, timing } = handle.props;
|
|
128
|
+
let flip = row.flipTo;
|
|
129
|
+
let flipAt = timing ? landsAt(timing, index) + FLIP_AFTER : 0;
|
|
130
|
+
let slot = timing ? `${timing.count}-${index}` : "";
|
|
131
|
+
let finalStatus = flip?.status ?? row.status;
|
|
132
|
+
return (_jsx("li", { "data-status": finalStatus, mix: [rowShell(timing, index)], children: _jsx("div", { mix: [raw({ minBlockSize: "0", overflow: "hidden" })], children: _jsxs("div", { mix: [rowGrid()], children: [_jsx("time", { mix: [
|
|
133
|
+
quiet(),
|
|
134
|
+
raw({ gridArea: "time", fontFamily: "var(--ui-font-mono)", whiteSpace: "nowrap" }),
|
|
135
|
+
], children: row.time }), _jsx("span", { mix: [
|
|
136
|
+
raw({
|
|
137
|
+
gridArea: "label",
|
|
138
|
+
minInlineSize: "0",
|
|
139
|
+
fontSize: "0.875rem",
|
|
140
|
+
lineHeight: "1.25rem",
|
|
141
|
+
fontWeight: "500",
|
|
142
|
+
color: "var(--ui-neutral-fg-emphasis)",
|
|
143
|
+
overflowWrap: "anywhere",
|
|
144
|
+
}),
|
|
145
|
+
], children: row.label }), _jsxs("span", { mix: [stack(), raw({ gridArea: "chip", justifyItems: "end" })], children: [flip ? (_jsx(Chip, { status: row.status, label: statusLabels[row.status], hidden: true, mix: [fading(`ui-event-ticker-from-${slot}`, timing, flipAt, true)] })) : null, _jsx(Chip, { status: finalStatus, label: statusLabels[finalStatus], mix: [flip ? fading(`ui-event-ticker-to-${slot}`, timing, flipAt, false) : []] })] }), _jsx(RowDetails, { row: row, timing: timing, flipAt: flipAt, slot: slot })] }) }) }));
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The row's detail line, or the two lines a `flipTo` with its own detail cross-fades
|
|
150
|
+
* between. A row that has no detail before or after renders nothing.
|
|
151
|
+
*/
|
|
152
|
+
function RowDetails(handle) {
|
|
153
|
+
return () => {
|
|
154
|
+
let { flipAt, row, slot, timing } = handle.props;
|
|
155
|
+
let flip = row.flipTo;
|
|
156
|
+
let flips = flip !== undefined && (flip.detail !== undefined || flip.code !== undefined);
|
|
157
|
+
let before = { status: row.status, detail: row.detail, code: row.code };
|
|
158
|
+
let after = flips && flip ? flip : before;
|
|
159
|
+
let hasBefore = before.detail !== undefined || before.code !== undefined;
|
|
160
|
+
let hasAfter = after.detail !== undefined || after.code !== undefined;
|
|
161
|
+
if (!hasBefore && !hasAfter)
|
|
162
|
+
return null;
|
|
163
|
+
let finalStatus = flip?.status ?? row.status;
|
|
164
|
+
return (_jsxs("span", { mix: [stack(), raw({ gridArea: "detail", justifyItems: "start" })], children: [flips && hasBefore ? (_jsx(DetailLine, { status: row.status, detail: before.detail, code: before.code, hidden: true, mix: [fading(`ui-event-ticker-detail-from-${slot}`, timing, flipAt, true)] })) : null, hasAfter ? (_jsx(DetailLine, { status: finalStatus, detail: after.detail, code: after.code, mix: [flips ? fading(`ui-event-ticker-detail-to-${slot}`, timing, flipAt, false) : []] })) : null] }));
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** A quieter line under the label, in mono for `code`, tinted in the danger tone on a failure. */
|
|
168
|
+
function DetailLine(handle) {
|
|
169
|
+
return () => {
|
|
170
|
+
let { code, detail, hidden, mix, status } = handle.props;
|
|
171
|
+
let tint = status === "fail"
|
|
172
|
+
? raw({
|
|
173
|
+
paddingInline: "0.5rem",
|
|
174
|
+
paddingBlock: "0.125rem",
|
|
175
|
+
borderRadius: "0.375rem",
|
|
176
|
+
color: "var(--ui-danger-fg-emphasis)",
|
|
177
|
+
backgroundColor: "var(--ui-danger-bg-tint)",
|
|
178
|
+
})
|
|
179
|
+
: [];
|
|
180
|
+
return code !== undefined ? (_jsx("code", { "aria-hidden": hidden ? "true" : undefined, mix: [quiet(), layer(), raw({ fontFamily: "var(--ui-font-mono)" }), tint, mix ?? []], children: code })) : (_jsx("span", { "aria-hidden": hidden ? "true" : undefined, mix: [quiet(), layer(), tint, mix ?? []], children: detail }));
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/** The list both the live feed and its sizing copy lay out with. */
|
|
184
|
+
function list() {
|
|
185
|
+
return raw({
|
|
186
|
+
gridArea: "1 / 1",
|
|
187
|
+
display: "grid",
|
|
188
|
+
margin: "0",
|
|
189
|
+
padding: "0",
|
|
190
|
+
listStyle: "none",
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* A row's collapsible shell, open by default. While animating it stays closed until the
|
|
195
|
+
* row lands, opens to its content's height, holds, and fades out at {@link RESET_AT},
|
|
196
|
+
* closing only once it is invisible.
|
|
197
|
+
*/
|
|
198
|
+
function rowShell(timing, index) {
|
|
199
|
+
let shell = raw({ display: "grid", gridTemplateRows: "1fr" });
|
|
200
|
+
if (!timing)
|
|
201
|
+
return [shell];
|
|
202
|
+
let name = `ui-event-ticker-row-${timing.count}-${index}`;
|
|
203
|
+
let at = landsAt(timing, index);
|
|
204
|
+
let closed = { gridTemplateRows: "0fr", opacity: "0" };
|
|
205
|
+
let open = { gridTemplateRows: "1fr", opacity: "1" };
|
|
206
|
+
return [
|
|
207
|
+
shell,
|
|
208
|
+
keyframes(name, {
|
|
209
|
+
"0%": closed,
|
|
210
|
+
[`${at}%`]: closed,
|
|
211
|
+
[`${round(at + EXPAND_SPAN)}%`]: open,
|
|
212
|
+
[`${RESET_AT}%`]: open,
|
|
213
|
+
[`${RESET_AT + 3}%`]: { gridTemplateRows: "1fr", opacity: "0" },
|
|
214
|
+
"99%": { gridTemplateRows: "1fr", opacity: "0" },
|
|
215
|
+
"100%": closed,
|
|
216
|
+
}),
|
|
217
|
+
motionSafe(raw(loop(name))),
|
|
218
|
+
];
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Cross-fades one of a flip's two stacked layers at `at`: the first layer (`leaving`)
|
|
222
|
+
* shows until then, the second after. At rest the second shows and the first stays hidden.
|
|
223
|
+
*/
|
|
224
|
+
function fading(name, timing, at, leaving) {
|
|
225
|
+
let rest = raw({ opacity: leaving ? "0" : "1" });
|
|
226
|
+
if (!timing)
|
|
227
|
+
return [rest];
|
|
228
|
+
let before = { opacity: leaving ? "1" : "0" };
|
|
229
|
+
let after = { opacity: leaving ? "0" : "1" };
|
|
230
|
+
return [
|
|
231
|
+
rest,
|
|
232
|
+
keyframes(name, {
|
|
233
|
+
"0%": before,
|
|
234
|
+
[`${at}%`]: before,
|
|
235
|
+
[`${round(at + FLIP_SPAN)}%`]: after,
|
|
236
|
+
"99%": after,
|
|
237
|
+
"100%": before,
|
|
238
|
+
}),
|
|
239
|
+
motionSafe(raw(loop(name))),
|
|
240
|
+
];
|
|
241
|
+
}
|
|
242
|
+
/** A row's grid: time, label and chip on the first line, the detail under the label. */
|
|
243
|
+
function rowGrid() {
|
|
244
|
+
return raw({
|
|
245
|
+
display: "grid",
|
|
246
|
+
gridTemplateColumns: "auto minmax(0, 1fr) auto",
|
|
247
|
+
gridTemplateAreas: '"time label chip" ". detail detail"',
|
|
248
|
+
columnGap: "0.75rem",
|
|
249
|
+
rowGap: "0.25rem",
|
|
250
|
+
alignItems: "baseline",
|
|
251
|
+
paddingBlock: "0.625rem",
|
|
252
|
+
borderBlockEnd: "1px solid var(--ui-landing-hairline, var(--ui-neutral-border))",
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/** Places a layer in its {@link stack}'s one cell. */
|
|
256
|
+
function layer() {
|
|
257
|
+
return raw({ gridArea: "layer" });
|
|
258
|
+
}
|
|
259
|
+
/** A single grid cell its children overlap in, so stacked layers share one box. */
|
|
260
|
+
function stack() {
|
|
261
|
+
return raw({ display: "grid", gridTemplateAreas: '"layer"', minInlineSize: "0" });
|
|
262
|
+
}
|
|
263
|
+
/** The pill a {@link Chip} draws in the tone {@link STATUS_TONES} gives `status`. */
|
|
264
|
+
function chip(status) {
|
|
265
|
+
let tone = STATUS_TONES[status];
|
|
266
|
+
return [
|
|
267
|
+
layer(),
|
|
268
|
+
raw({
|
|
269
|
+
display: "inline-flex",
|
|
270
|
+
alignItems: "center",
|
|
271
|
+
gap: "0.375rem",
|
|
272
|
+
paddingInline: "0.5rem",
|
|
273
|
+
paddingBlock: "0.125rem",
|
|
274
|
+
borderRadius: "9999px",
|
|
275
|
+
border: `1px solid var(--ui-${tone}-border)`,
|
|
276
|
+
fontSize: "0.75rem",
|
|
277
|
+
lineHeight: "1rem",
|
|
278
|
+
fontWeight: "600",
|
|
279
|
+
whiteSpace: "nowrap",
|
|
280
|
+
color: `var(--ui-${tone}-fg-emphasis)`,
|
|
281
|
+
backgroundColor: `var(--ui-${tone}-bg-tint)`,
|
|
282
|
+
}),
|
|
283
|
+
];
|
|
284
|
+
}
|
|
285
|
+
/** A status chip: a dot in the status's solid tone, then its label. */
|
|
286
|
+
function Chip(handle) {
|
|
287
|
+
return () => {
|
|
288
|
+
let { hidden, label, mix, status } = handle.props;
|
|
289
|
+
return (_jsxs("span", { "data-slot": "event-ticker-chip", "aria-hidden": hidden ? "true" : undefined, mix: [chip(status), mix ?? []], children: [_jsx("span", { "aria-hidden": "true", mix: [
|
|
290
|
+
raw({
|
|
291
|
+
flexShrink: "0",
|
|
292
|
+
inlineSize: "0.375rem",
|
|
293
|
+
blockSize: "0.375rem",
|
|
294
|
+
borderRadius: "9999px",
|
|
295
|
+
backgroundColor: `var(--ui-${STATUS_TONES[status]}-bg-solid)`,
|
|
296
|
+
}),
|
|
297
|
+
] }), label] }));
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
/** The header's live dot, which pulses while motion runs and holds solid otherwise. */
|
|
301
|
+
function liveDot() {
|
|
302
|
+
return [
|
|
303
|
+
keyframes(PULSE_KEYFRAMES, {
|
|
304
|
+
"0%": { boxShadow: "0 0 0 0 var(--ui-success-bg-tint)", opacity: "1" },
|
|
305
|
+
"50%": { boxShadow: "0 0 0 0.3125rem var(--ui-success-bg-tint)", opacity: "0.6" },
|
|
306
|
+
"100%": { boxShadow: "0 0 0 0 var(--ui-success-bg-tint)", opacity: "1" },
|
|
307
|
+
}),
|
|
308
|
+
raw({
|
|
309
|
+
flexShrink: "0",
|
|
310
|
+
inlineSize: "0.5rem",
|
|
311
|
+
blockSize: "0.5rem",
|
|
312
|
+
borderRadius: "9999px",
|
|
313
|
+
backgroundColor: "var(--ui-success-bg-solid)",
|
|
314
|
+
}),
|
|
315
|
+
motionSafe(raw({
|
|
316
|
+
animationName: PULSE_KEYFRAMES,
|
|
317
|
+
animationDuration: "2s",
|
|
318
|
+
animationTimingFunction: "ease-in-out",
|
|
319
|
+
animationIterationCount: "infinite",
|
|
320
|
+
})),
|
|
321
|
+
];
|
|
322
|
+
}
|
|
323
|
+
/** The quieter ink a row's time and detail, and the footnote, are set in. */
|
|
324
|
+
function quiet() {
|
|
325
|
+
return raw({
|
|
326
|
+
fontSize: "0.8125rem",
|
|
327
|
+
lineHeight: "1.25rem",
|
|
328
|
+
color: "var(--ui-neutral-fg-muted)",
|
|
329
|
+
overflowWrap: "anywhere",
|
|
330
|
+
});
|
|
331
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An animated picture of one thing serving many: a source sends one pulse down a trunk,
|
|
3
|
+
* a bus carries it to every target, and each target lights in turn, then loops. With
|
|
4
|
+
* `direction="in"` it mirrors to many targets feeding one source, such as regions voting.
|
|
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 FanOutDiagram}.
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace FanOutDiagram {
|
|
14
|
+
/** Which way the pulse flows: from the source to every target, or from every target in. */
|
|
15
|
+
type Direction = "out" | "in";
|
|
16
|
+
/** The one end of the diagram, such as a feed fetch or an incident. */
|
|
17
|
+
interface Source {
|
|
18
|
+
/** Glyph inside the source's well, drawn in the brand ink. */
|
|
19
|
+
icon?: RemixNode;
|
|
20
|
+
title: RemixNode;
|
|
21
|
+
/** Quieter mono line under the title, such as a URL or a check name. */
|
|
22
|
+
detail?: RemixNode;
|
|
23
|
+
}
|
|
24
|
+
/** One of the many ends, such as a follower's queue or an alert channel. */
|
|
25
|
+
interface Target {
|
|
26
|
+
/** Glyph before the title. */
|
|
27
|
+
icon?: RemixNode;
|
|
28
|
+
title: RemixNode;
|
|
29
|
+
/** Line that fades in as the target lights, such as "+3 posts". */
|
|
30
|
+
detail?: RemixNode;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props accepted by {@link FanOutDiagram}.
|
|
34
|
+
*/
|
|
35
|
+
interface Props extends Omit<TagProps<"div">, "children"> {
|
|
36
|
+
/** Accessible name of the diagram's figure. Required — the library ships no copy. */
|
|
37
|
+
"aria-label": string;
|
|
38
|
+
/** Accessible name of the pause toggle. */
|
|
39
|
+
pauseLabel?: string;
|
|
40
|
+
source: Source;
|
|
41
|
+
/** Two to six targets, laid out in up to three columns. */
|
|
42
|
+
targets: readonly Target[];
|
|
43
|
+
/**
|
|
44
|
+
* `out` puts the source on top and flows down to the targets; `in` puts the targets
|
|
45
|
+
* on top and flows down into the source.
|
|
46
|
+
* @default "out"
|
|
47
|
+
*/
|
|
48
|
+
direction?: Direction;
|
|
49
|
+
/** The result badge that appears once every target lit, such as "Delivered to 4". */
|
|
50
|
+
outcome?: RemixNode;
|
|
51
|
+
/** A note across from the outcome. */
|
|
52
|
+
footnote?: RemixNode;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Renders the source, its trunk and a list of targets on a raised surface inside a
|
|
57
|
+
* {@link MotionLoop}. Without motion every line shows filled and every target lit, so the
|
|
58
|
+
* static picture is the delivered state. Diagrams of the same shape and direction share keyframes.
|
|
59
|
+
*
|
|
60
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
61
|
+
* @returns The render function producing the diagram's markup.
|
|
62
|
+
* @example
|
|
63
|
+
* <FanOutDiagram
|
|
64
|
+
* aria-label="One fetch, every reader"
|
|
65
|
+
* source={{ icon: <RssIcon size={14} />, title: "Feed fetched", detail: "GET /feed.xml" }}
|
|
66
|
+
* targets={[{ title: "Ana", detail: "+3 posts" }, { title: "Ben", detail: "+3 posts" }]}
|
|
67
|
+
* outcome="Delivered to 2 readers"
|
|
68
|
+
* />
|
|
69
|
+
*/
|
|
70
|
+
export declare function FanOutDiagram(handle: Handle<FanOutDiagram.Props>): () => import("remix/component").RemixElement;
|