@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,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why JS: HTML has no select-all checkbox, no indeterminate state outside script and no
|
|
3
|
+
* shift-click range. No-JS baseline: every row checkbox still toggles and submits with its
|
|
4
|
+
* form, and a checked row is tinted by CSS alone.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { ElementProps, MixinFactory } from "remix/component";
|
|
10
|
+
/** Selector for a per-row checkbox, the contract any selectable list renders. */
|
|
11
|
+
export declare const SELECTION_ITEM_SELECTOR = "input[type=checkbox][data-selection-item]";
|
|
12
|
+
/** Selector for the checkbox that selects or clears every row at once. */
|
|
13
|
+
export declare const SELECTION_ALL_SELECTOR = "input[type=checkbox][data-selection-all]";
|
|
14
|
+
/**
|
|
15
|
+
* Keeps a table's selection checkboxes consistent: select-all checks or clears every enabled
|
|
16
|
+
* row, mirrors the rows as checked, indeterminate or clear, and a shift-click checks or clears
|
|
17
|
+
* every row between the last clicked one and this one. Each row it changes fires a bubbling
|
|
18
|
+
* `change`, as a click would, so a selection bar counting `[data-selection-item]:checked`
|
|
19
|
+
* hears every change; each row's `<tr>` carries `aria-selected` while checked.
|
|
20
|
+
*
|
|
21
|
+
* The host is the region it governs: a `<table>`, a wrapper, or a marker inside a table, which
|
|
22
|
+
* hands the work to its closest `<table>`.
|
|
23
|
+
*
|
|
24
|
+
* @example <Table mix={[tableSelection()]}>…</Table>
|
|
25
|
+
* @example <span hidden mix={[tableSelection()]} />
|
|
26
|
+
*/
|
|
27
|
+
export declare const tableSelection: MixinFactory<HTMLElement, [], ElementProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Keeps `scope`'s row boxes true to the selection when a frame reload or navigation patches
|
|
30
|
+
* them against server HTML, until `signal` aborts. The patch matches rows by position and
|
|
31
|
+
* keeps each box's live check, so afterwards a box is checked exactly when it holds a record
|
|
32
|
+
* that was checked before; once a form submitted checked rows, its boxes take what the server
|
|
33
|
+
* rendered instead. `restored` runs after every such patch, even one that changed no box.
|
|
34
|
+
*
|
|
35
|
+
* @param scope The region holding the row boxes.
|
|
36
|
+
* @param signal Ends the watch once the binding leaves the document.
|
|
37
|
+
* @param restored Re-derives what the binding draws from the boxes.
|
|
38
|
+
*/
|
|
39
|
+
export declare function keepSelection(scope: HTMLElement, signal: AbortSignal, restored: () => void): void;
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why JS: HTML has no select-all checkbox, no indeterminate state outside script and no
|
|
3
|
+
* shift-click range. No-JS baseline: every row checkbox still toggles and submits with its
|
|
4
|
+
* form, and a checked row is tinted by CSS alone.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import { iife } from "@sdxc/iife";
|
|
10
|
+
import { createMixin } from "remix/component";
|
|
11
|
+
/** Selector for a per-row checkbox, the contract any selectable list renders. */
|
|
12
|
+
export const SELECTION_ITEM_SELECTOR = "input[type=checkbox][data-selection-item]";
|
|
13
|
+
/** Selector for the checkbox that selects or clears every row at once. */
|
|
14
|
+
export const SELECTION_ALL_SELECTOR = "input[type=checkbox][data-selection-all]";
|
|
15
|
+
/**
|
|
16
|
+
* Marks a checked row box on the client alone, so a frame reload or navigation that patches
|
|
17
|
+
* the row against server HTML removes it: that removal is how a selection learns its rows
|
|
18
|
+
* were re-rendered.
|
|
19
|
+
*/
|
|
20
|
+
const CHECKED_MARKER = "data-selection-checked";
|
|
21
|
+
/**
|
|
22
|
+
* The record each known row box held when last seen, `null` while unchecked. Module-wide, so
|
|
23
|
+
* every binding over the same boxes restores the same selection.
|
|
24
|
+
*/
|
|
25
|
+
const REMEMBERED = new WeakMap();
|
|
26
|
+
/** Forms that submitted checked rows; their next re-render clears the selection it sent. */
|
|
27
|
+
const SUBMITTED = new WeakSet();
|
|
28
|
+
/**
|
|
29
|
+
* Every live keeper and the one observer watching all their regions, created on first use.
|
|
30
|
+
* One observer hears each patch once, however many keepers' regions overlap.
|
|
31
|
+
*/
|
|
32
|
+
const KEEPING = { keepers: new Set() };
|
|
33
|
+
/**
|
|
34
|
+
* Keeps a table's selection checkboxes consistent: select-all checks or clears every enabled
|
|
35
|
+
* row, mirrors the rows as checked, indeterminate or clear, and a shift-click checks or clears
|
|
36
|
+
* every row between the last clicked one and this one. Each row it changes fires a bubbling
|
|
37
|
+
* `change`, as a click would, so a selection bar counting `[data-selection-item]:checked`
|
|
38
|
+
* hears every change; each row's `<tr>` carries `aria-selected` while checked.
|
|
39
|
+
*
|
|
40
|
+
* The host is the region it governs: a `<table>`, a wrapper, or a marker inside a table, which
|
|
41
|
+
* hands the work to its closest `<table>`.
|
|
42
|
+
*
|
|
43
|
+
* @example <Table mix={[tableSelection()]}>…</Table>
|
|
44
|
+
* @example <span hidden mix={[tableSelection()]} />
|
|
45
|
+
*/
|
|
46
|
+
export const tableSelection = createMixin((handle) => {
|
|
47
|
+
let controller;
|
|
48
|
+
handle.addEventListener("insert", (event) => {
|
|
49
|
+
controller?.abort();
|
|
50
|
+
controller = new AbortController();
|
|
51
|
+
let scope = event.node.closest("table") ?? event.node;
|
|
52
|
+
bindSelection(scope, controller.signal);
|
|
53
|
+
});
|
|
54
|
+
handle.addEventListener("remove", () => {
|
|
55
|
+
controller?.abort();
|
|
56
|
+
controller = undefined;
|
|
57
|
+
});
|
|
58
|
+
}, { ssr: false });
|
|
59
|
+
/**
|
|
60
|
+
* Wires `scope`'s checkboxes until `signal` aborts. A batch of changes the mixin makes itself
|
|
61
|
+
* syncs select-all once at the end, so checking a thousand rows costs one pass.
|
|
62
|
+
*/
|
|
63
|
+
function bindSelection(scope, signal) {
|
|
64
|
+
let anchor = null;
|
|
65
|
+
let applying = false;
|
|
66
|
+
/** The enabled row checkboxes in document order, the order a range spans. */
|
|
67
|
+
function items() {
|
|
68
|
+
return [...scope.querySelectorAll(SELECTION_ITEM_SELECTOR)].filter((item) => !item.disabled);
|
|
69
|
+
}
|
|
70
|
+
/** Sets each of `targets` to `checked`, firing `change` on every one that flips. */
|
|
71
|
+
function apply(targets, checked) {
|
|
72
|
+
applying = true;
|
|
73
|
+
for (let target of targets) {
|
|
74
|
+
if (target.checked === checked)
|
|
75
|
+
continue;
|
|
76
|
+
target.checked = checked;
|
|
77
|
+
target.dispatchEvent(new Event("change", { bubbles: true }));
|
|
78
|
+
}
|
|
79
|
+
applying = false;
|
|
80
|
+
sync();
|
|
81
|
+
}
|
|
82
|
+
/** Mirrors the rows onto every select-all box and onto each row's `aria-selected`. */
|
|
83
|
+
function sync() {
|
|
84
|
+
let all = items();
|
|
85
|
+
let checked = all.filter((item) => item.checked).length;
|
|
86
|
+
for (let box of scope.querySelectorAll(SELECTION_ALL_SELECTOR)) {
|
|
87
|
+
box.checked = all.length > 0 && checked === all.length;
|
|
88
|
+
box.indeterminate = checked > 0 && checked < all.length;
|
|
89
|
+
}
|
|
90
|
+
for (let item of scope.querySelectorAll(SELECTION_ITEM_SELECTOR)) {
|
|
91
|
+
let row = item.closest("tr");
|
|
92
|
+
if (!row)
|
|
93
|
+
continue;
|
|
94
|
+
if (item.checked)
|
|
95
|
+
row.setAttribute("aria-selected", "true");
|
|
96
|
+
else
|
|
97
|
+
row.removeAttribute("aria-selected");
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
keepSelection(scope, signal, sync);
|
|
101
|
+
scope.addEventListener("mousedown", (event) => {
|
|
102
|
+
if (!event.shiftKey || !(event.target instanceof Element))
|
|
103
|
+
return;
|
|
104
|
+
if (event.target.closest("label")?.querySelector(SELECTION_ITEM_SELECTOR)) {
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
}
|
|
107
|
+
}, { signal });
|
|
108
|
+
scope.addEventListener("click", (event) => {
|
|
109
|
+
let item = event.target instanceof Element ? event.target : null;
|
|
110
|
+
if (!item?.matches(SELECTION_ITEM_SELECTOR))
|
|
111
|
+
return;
|
|
112
|
+
let current = item;
|
|
113
|
+
let all = items();
|
|
114
|
+
if (event.shiftKey && anchor && anchor !== current && all.includes(anchor)) {
|
|
115
|
+
let [from, to] = [all.indexOf(anchor), all.indexOf(current)].sort((a, b) => a - b);
|
|
116
|
+
apply(all.slice(from, (to ?? 0) + 1), current.checked);
|
|
117
|
+
}
|
|
118
|
+
anchor = current;
|
|
119
|
+
}, { signal });
|
|
120
|
+
scope.addEventListener("change", (event) => {
|
|
121
|
+
if (applying || !(event.target instanceof Element))
|
|
122
|
+
return;
|
|
123
|
+
if (event.target.matches(SELECTION_ALL_SELECTOR)) {
|
|
124
|
+
apply(items(), event.target.checked);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (event.target.matches(SELECTION_ITEM_SELECTOR))
|
|
128
|
+
sync();
|
|
129
|
+
}, { signal });
|
|
130
|
+
sync();
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Keeps `scope`'s row boxes true to the selection when a frame reload or navigation patches
|
|
134
|
+
* them against server HTML, until `signal` aborts. The patch matches rows by position and
|
|
135
|
+
* keeps each box's live check, so afterwards a box is checked exactly when it holds a record
|
|
136
|
+
* that was checked before; once a form submitted checked rows, its boxes take what the server
|
|
137
|
+
* rendered instead. `restored` runs after every such patch, even one that changed no box.
|
|
138
|
+
*
|
|
139
|
+
* @param scope The region holding the row boxes.
|
|
140
|
+
* @param signal Ends the watch once the binding leaves the document.
|
|
141
|
+
* @param restored Re-derives what the binding draws from the boxes.
|
|
142
|
+
*/
|
|
143
|
+
export function keepSelection(scope, signal, restored) {
|
|
144
|
+
if (signal.aborted)
|
|
145
|
+
return;
|
|
146
|
+
let keeper = { scope, restored };
|
|
147
|
+
KEEPING.keepers.add(keeper);
|
|
148
|
+
KEEPING.observer ??= new MutationObserver(settleRerender);
|
|
149
|
+
KEEPING.observer.observe(scope, {
|
|
150
|
+
subtree: true,
|
|
151
|
+
childList: true,
|
|
152
|
+
attributeFilter: [CHECKED_MARKER],
|
|
153
|
+
attributeOldValue: true,
|
|
154
|
+
});
|
|
155
|
+
remember(rowBoxes(scope));
|
|
156
|
+
scope.addEventListener("change", (event) => {
|
|
157
|
+
if (event.target instanceof HTMLInputElement &&
|
|
158
|
+
event.target.matches(SELECTION_ITEM_SELECTOR)) {
|
|
159
|
+
remember([event.target]);
|
|
160
|
+
}
|
|
161
|
+
}, { signal });
|
|
162
|
+
scope.ownerDocument.addEventListener("submit", (event) => {
|
|
163
|
+
let form = event.target;
|
|
164
|
+
if (!(form instanceof HTMLFormElement))
|
|
165
|
+
return;
|
|
166
|
+
let sent = rowBoxes(scope).some((item) => item.checked && item.form === form);
|
|
167
|
+
if (sent)
|
|
168
|
+
SUBMITTED.add(form);
|
|
169
|
+
}, { capture: true, signal });
|
|
170
|
+
scope.ownerDocument.addEventListener("reset", () => setTimeout(() => remember(rowBoxes(scope))), {
|
|
171
|
+
capture: true,
|
|
172
|
+
signal,
|
|
173
|
+
});
|
|
174
|
+
signal.addEventListener("abort", () => {
|
|
175
|
+
KEEPING.keepers.delete(keeper);
|
|
176
|
+
if (KEEPING.keepers.size > 0)
|
|
177
|
+
return;
|
|
178
|
+
KEEPING.observer?.disconnect();
|
|
179
|
+
KEEPING.observer = undefined;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/** Every row box in `scope`, disabled ones included, in document order. */
|
|
183
|
+
function rowBoxes(scope) {
|
|
184
|
+
return [...scope.querySelectorAll(SELECTION_ITEM_SELECTOR)];
|
|
185
|
+
}
|
|
186
|
+
/** Row boxes in or at `node`, for nodes a patch added or removed. */
|
|
187
|
+
function boxesIn(node) {
|
|
188
|
+
if (!(node instanceof Element))
|
|
189
|
+
return [];
|
|
190
|
+
if (node.matches(SELECTION_ITEM_SELECTOR))
|
|
191
|
+
return [node];
|
|
192
|
+
return rowBoxes(node);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Records what each of `items` holds and marks the checked ones. The observer's own marker
|
|
196
|
+
* writes are dropped right away, so only a patch's removals reach it.
|
|
197
|
+
*/
|
|
198
|
+
function remember(items) {
|
|
199
|
+
for (let item of items) {
|
|
200
|
+
REMEMBERED.set(item, item.checked ? item.value : null);
|
|
201
|
+
if (item.checked === item.hasAttribute(CHECKED_MARKER))
|
|
202
|
+
continue;
|
|
203
|
+
if (item.checked)
|
|
204
|
+
item.setAttribute(CHECKED_MARKER, "");
|
|
205
|
+
else
|
|
206
|
+
item.removeAttribute(CHECKED_MARKER);
|
|
207
|
+
}
|
|
208
|
+
KEEPING.observer?.takeRecords();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Answers a batch of mutations: when a patch removed the marker from a box still remembered
|
|
212
|
+
* as checked, or added or removed rows, every kept region's boxes are restored.
|
|
213
|
+
*/
|
|
214
|
+
function settleRerender(records) {
|
|
215
|
+
let gone = [];
|
|
216
|
+
let patched = false;
|
|
217
|
+
for (let record of records) {
|
|
218
|
+
if (record.type === "attributes") {
|
|
219
|
+
let item = record.target;
|
|
220
|
+
if (typeof REMEMBERED.get(item) === "string" && !item.hasAttribute(CHECKED_MARKER)) {
|
|
221
|
+
patched = true;
|
|
222
|
+
}
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
let added = [...record.addedNodes].flatMap(boxesIn);
|
|
226
|
+
let removed = [...record.removedNodes].flatMap(boxesIn);
|
|
227
|
+
if (added.length > 0 || removed.length > 0)
|
|
228
|
+
patched = true;
|
|
229
|
+
gone.push(...removed);
|
|
230
|
+
}
|
|
231
|
+
if (!patched)
|
|
232
|
+
return;
|
|
233
|
+
let keepers = [...KEEPING.keepers].filter((keeper) => keeper.scope.isConnected);
|
|
234
|
+
let items = [...new Set(keepers.flatMap((keeper) => rowBoxes(keeper.scope)))];
|
|
235
|
+
restore(items, gone);
|
|
236
|
+
remember(items);
|
|
237
|
+
for (let keeper of keepers)
|
|
238
|
+
keeper.restored();
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Checks each box that holds a record checked before the patch, or, for a form that
|
|
242
|
+
* submitted, what the server rendered. A box the patch created keeps its rendered check.
|
|
243
|
+
* Each box that flips fires a bubbling `change`, as a click would.
|
|
244
|
+
*
|
|
245
|
+
* @param items The boxes on the page now.
|
|
246
|
+
* @param gone The boxes the patch removed, whose records may have moved to other rows.
|
|
247
|
+
*/
|
|
248
|
+
function restore(items, gone) {
|
|
249
|
+
let records = new Set();
|
|
250
|
+
for (let item of [...items, ...gone]) {
|
|
251
|
+
let record = REMEMBERED.get(item);
|
|
252
|
+
if (typeof record === "string")
|
|
253
|
+
records.add(record);
|
|
254
|
+
}
|
|
255
|
+
let consumed = new Set();
|
|
256
|
+
for (let item of items) {
|
|
257
|
+
let form = item.form;
|
|
258
|
+
let wanted = iife(() => {
|
|
259
|
+
if (form && SUBMITTED.has(form)) {
|
|
260
|
+
consumed.add(form);
|
|
261
|
+
return item.defaultChecked;
|
|
262
|
+
}
|
|
263
|
+
return records.has(item.value) || (REMEMBERED.get(item) === undefined && item.checked);
|
|
264
|
+
});
|
|
265
|
+
if (item.checked === wanted)
|
|
266
|
+
continue;
|
|
267
|
+
item.checked = wanted;
|
|
268
|
+
item.dispatchEvent(new Event("change", { bubbles: true }));
|
|
269
|
+
}
|
|
270
|
+
for (let form of consumed)
|
|
271
|
+
SUBMITTED.delete(form);
|
|
272
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ties a drawn toast stack to its `Toaster` queue: hovering or focusing the
|
|
3
|
+
* region holds every timer, a toast's native `close` leaves the queue, and an
|
|
4
|
+
* action runs once and takes its toast away.
|
|
5
|
+
*
|
|
6
|
+
* Why JS: timers and the queue live in script. No-JS baseline: a server-rendered
|
|
7
|
+
* toast stays until its close button's native `close` command hides it.
|
|
8
|
+
*
|
|
9
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
|
+
* @copyright Sergio Xalambrí 2026
|
|
11
|
+
*/
|
|
12
|
+
import type { Toaster } from "../behaviors/toaster.js";
|
|
13
|
+
/**
|
|
14
|
+
* Pauses every toast in `toaster` while the pointer or focus rests on the
|
|
15
|
+
* region, and resumes once both leave, so a fanned-out stack stays readable.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <div data-slot="region" mix={[toastHold(toaster)]}>{toasts}</div>
|
|
19
|
+
*/
|
|
20
|
+
export declare const toastHold: import("remix/component").MixinFactory<HTMLElement, [toaster: Toaster<unknown>], import("remix/component").ElementProps>;
|
|
21
|
+
/**
|
|
22
|
+
* Removes toast `id` from `toaster` when its `<dialog>` host closes, which its
|
|
23
|
+
* close button does natively through the `close` command.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <dialog open id="toast-1" mix={[toastClose(toaster, "1")]}>…</dialog>
|
|
27
|
+
*/
|
|
28
|
+
export declare const toastClose: import("remix/component").MixinFactory<HTMLDialogElement, [toaster: Toaster<unknown>, id: string], import("remix/component").ElementProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Runs a toast action's callback on click; unless the button submits a form,
|
|
31
|
+
* whose navigation carries on, toast `id` then leaves `toaster`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <button mix={[toastAction(toaster, id, restore)]}>Undo</button>
|
|
35
|
+
*/
|
|
36
|
+
export declare const toastAction: import("remix/component").MixinFactory<HTMLButtonElement, [toaster: Toaster<unknown>, id: string, onAction: (() => void) | undefined], import("remix/component").ElementProps>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ties a drawn toast stack to its `Toaster` queue: hovering or focusing the
|
|
3
|
+
* region holds every timer, a toast's native `close` leaves the queue, and an
|
|
4
|
+
* action runs once and takes its toast away.
|
|
5
|
+
*
|
|
6
|
+
* Why JS: timers and the queue live in script. No-JS baseline: a server-rendered
|
|
7
|
+
* toast stays until its close button's native `close` command hides it.
|
|
8
|
+
*
|
|
9
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
10
|
+
* @copyright Sergio Xalambrí 2026
|
|
11
|
+
*/
|
|
12
|
+
import { createElement, createMixin, on } from "remix/component";
|
|
13
|
+
/**
|
|
14
|
+
* Pauses every toast in `toaster` while the pointer or focus rests on the
|
|
15
|
+
* region, and resumes once both leave, so a fanned-out stack stays readable.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <div data-slot="region" mix={[toastHold(toaster)]}>{toasts}</div>
|
|
19
|
+
*/
|
|
20
|
+
export const toastHold = createMixin((handle) => {
|
|
21
|
+
let pointerInside = false;
|
|
22
|
+
let focusInside = false;
|
|
23
|
+
/** Pauses while either the pointer or focus is inside, resumes otherwise. */
|
|
24
|
+
function hold(toaster) {
|
|
25
|
+
if (pointerInside || focusInside)
|
|
26
|
+
toaster.pause();
|
|
27
|
+
else
|
|
28
|
+
toaster.resume();
|
|
29
|
+
}
|
|
30
|
+
return (toaster) => createElement(handle.element, {
|
|
31
|
+
mix: [
|
|
32
|
+
on("pointerenter", () => {
|
|
33
|
+
pointerInside = true;
|
|
34
|
+
hold(toaster);
|
|
35
|
+
}),
|
|
36
|
+
on("pointerleave", () => {
|
|
37
|
+
pointerInside = false;
|
|
38
|
+
hold(toaster);
|
|
39
|
+
}),
|
|
40
|
+
on("focusin", () => {
|
|
41
|
+
focusInside = true;
|
|
42
|
+
hold(toaster);
|
|
43
|
+
}),
|
|
44
|
+
on("focusout", (event) => {
|
|
45
|
+
let next = event.relatedTarget;
|
|
46
|
+
focusInside = next instanceof Node && event.currentTarget.contains(next);
|
|
47
|
+
hold(toaster);
|
|
48
|
+
}),
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* Removes toast `id` from `toaster` when its `<dialog>` host closes, which its
|
|
54
|
+
* close button does natively through the `close` command.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* <dialog open id="toast-1" mix={[toastClose(toaster, "1")]}>…</dialog>
|
|
58
|
+
*/
|
|
59
|
+
export const toastClose = createMixin((handle) => (toaster, id) => createElement(handle.element, {
|
|
60
|
+
mix: [on("close", () => void toaster.dismiss(id))],
|
|
61
|
+
}));
|
|
62
|
+
/**
|
|
63
|
+
* Runs a toast action's callback on click; unless the button submits a form,
|
|
64
|
+
* whose navigation carries on, toast `id` then leaves `toaster`.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* <button mix={[toastAction(toaster, id, restore)]}>Undo</button>
|
|
68
|
+
*/
|
|
69
|
+
export const toastAction = createMixin((handle) => (toaster, id, onAction) => createElement(handle.element, {
|
|
70
|
+
mix: [
|
|
71
|
+
on("click", (event) => {
|
|
72
|
+
onAction?.();
|
|
73
|
+
if (event.currentTarget.type !== "submit")
|
|
74
|
+
toaster.dismiss(id);
|
|
75
|
+
}),
|
|
76
|
+
],
|
|
77
|
+
}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a toast region's `--ui-toast-front-size` equal to the newest toast's
|
|
3
|
+
* height, so folded toasts behind it peek out by the same amount whatever
|
|
4
|
+
* their own length. Server HTML stacks without it until the island hydrates.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
|
+
/**
|
|
11
|
+
* Measures the region's last child (the toast in front) whenever it changes
|
|
12
|
+
* size or a toast arrives or leaves, writing its height onto the region.
|
|
13
|
+
*
|
|
14
|
+
* @returns A mixin ready for a toast region's `mix` prop.
|
|
15
|
+
* @example
|
|
16
|
+
* <div data-slot="region" mix={[toastStack()]}>{toasts}</div>
|
|
17
|
+
*/
|
|
18
|
+
export declare function toastStack(): MixinDescriptor<HTMLElement, [
|
|
19
|
+
callback: (node: HTMLElement, signal: AbortSignal) => void
|
|
20
|
+
], ElementProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a toast region's `--ui-toast-front-size` equal to the newest toast's
|
|
3
|
+
* height, so folded toasts behind it peek out by the same amount whatever
|
|
4
|
+
* their own length. Server HTML stacks without it until the island hydrates.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import { ref } from "remix/component";
|
|
10
|
+
/** Custom property the peek stack clamps every folded toast's height to. */
|
|
11
|
+
const FRONT_SIZE_PROPERTY = "--ui-toast-front-size";
|
|
12
|
+
/**
|
|
13
|
+
* Measures the region's last child (the toast in front) whenever it changes
|
|
14
|
+
* size or a toast arrives or leaves, writing its height onto the region.
|
|
15
|
+
*
|
|
16
|
+
* @returns A mixin ready for a toast region's `mix` prop.
|
|
17
|
+
* @example
|
|
18
|
+
* <div data-slot="region" mix={[toastStack()]}>{toasts}</div>
|
|
19
|
+
*/
|
|
20
|
+
export function toastStack() {
|
|
21
|
+
return ref((region, signal) => {
|
|
22
|
+
if (typeof ResizeObserver === "undefined")
|
|
23
|
+
return;
|
|
24
|
+
let front = null;
|
|
25
|
+
let resize = new ResizeObserver(() => measure());
|
|
26
|
+
let mutation = new MutationObserver(() => track());
|
|
27
|
+
/** Writes the front toast's border-box height, or clears it when the region is empty. */
|
|
28
|
+
function measure() {
|
|
29
|
+
if (front instanceof HTMLElement) {
|
|
30
|
+
region.style.setProperty(FRONT_SIZE_PROPERTY, `${front.offsetHeight}px`);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
region.style.removeProperty(FRONT_SIZE_PROPERTY);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Follows whichever child is now last, since a new toast always becomes the front one. */
|
|
37
|
+
function track() {
|
|
38
|
+
let next = region.lastElementChild;
|
|
39
|
+
if (next !== front) {
|
|
40
|
+
if (front)
|
|
41
|
+
resize.unobserve(front);
|
|
42
|
+
front = next;
|
|
43
|
+
if (front)
|
|
44
|
+
resize.observe(front);
|
|
45
|
+
}
|
|
46
|
+
measure();
|
|
47
|
+
}
|
|
48
|
+
mutation.observe(region, { childList: true });
|
|
49
|
+
track();
|
|
50
|
+
signal.addEventListener("abort", () => {
|
|
51
|
+
resize.disconnect();
|
|
52
|
+
mutation.disconnect();
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* @copyright Sergio Xalambrí 2026
|
|
11
11
|
*/
|
|
12
12
|
import { createElement, createMixin, on } from "remix/component";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { whileLive } from "../../mixins/while-live.js";
|
|
14
|
+
import { isPrintableKey, labelFor, setRovingTabindex } from "../../utils/keyboard-nav.js";
|
|
15
15
|
/**
|
|
16
16
|
* Attribute every Tree row exposes itself on; its value doubles as the
|
|
17
17
|
* `SelectionModel.Key` {@link treeKeys} toggles, ranges over, and mirrors
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client island: an on/off control (read, saved, starred) that is a real POST form. With
|
|
3
|
+
* script it flips the moment it is pressed and posts in the background; a refused post
|
|
4
|
+
* puts it back and says why in place, in copy picked by the response status. Without
|
|
5
|
+
* script it is a plain form submission.
|
|
6
|
+
*
|
|
7
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
|
+
* @copyright Sergio Xalambrí 2026
|
|
9
|
+
*/
|
|
10
|
+
import type { EntryComponent, RemixNode } from "remix/component";
|
|
11
|
+
/**
|
|
12
|
+
* Props {@link OptimisticToggle} serializes into the page for hydration, which is why they
|
|
13
|
+
* are a `type`: `SerializableProps` rejects an interface.
|
|
14
|
+
*/
|
|
15
|
+
export type OptimisticToggleProps = {
|
|
16
|
+
/** Where the form posts. */
|
|
17
|
+
action: string;
|
|
18
|
+
/** Field the next state submits under; its value is `"true"` to turn on, `"false"` to turn off. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Whether the toggle is on now, as the server knows it. */
|
|
21
|
+
pressed: boolean;
|
|
22
|
+
/** Hidden fields submitted with it: a CSRF token, the page to return to. */
|
|
23
|
+
fields?: Record<string, string>;
|
|
24
|
+
labels: {
|
|
25
|
+
/** The control's name, such as "Star"; `aria-pressed` carries the state. */
|
|
26
|
+
label: string;
|
|
27
|
+
/** Its name while on, such as "Mark as unread", when that reads better than `label`. */
|
|
28
|
+
pressed?: string;
|
|
29
|
+
/** Shown beside the control when the server refused the change. */
|
|
30
|
+
failed: string;
|
|
31
|
+
/** Shown instead of `failed` for a refusal with one of these HTTP statuses, such as 507. */
|
|
32
|
+
refused?: Record<number, string>;
|
|
33
|
+
};
|
|
34
|
+
/** What the button shows while on, such as a filled star; the label text when omitted. */
|
|
35
|
+
pressedContent?: RemixNode;
|
|
36
|
+
/** What the button shows while off, such as an outlined star; the label text when omitted. */
|
|
37
|
+
unpressedContent?: RemixNode;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Renders the form and its toggle button, with both states' content in the markup so a
|
|
41
|
+
* flip is a change of `data-pressed` on the form.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* <OptimisticToggle action={`/posts/${post.id}/star`} name="starred" pressed={post.starred}
|
|
45
|
+
* fields={{ returnTo: url.pathname }} labels={{ label: "Star", failed: "Failed" }}
|
|
46
|
+
* pressedContent={<StarIcon fill="currentColor" />} unpressedContent={<StarIcon />} />
|
|
47
|
+
*/
|
|
48
|
+
export declare const OptimisticToggle: EntryComponent<OptimisticToggleProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { fg } from "@sdxc/u/color";
|
|
3
|
+
import { gap, hidden, inlineFlex, items } from "@sdxc/u/layout";
|
|
4
|
+
import { when } from "@sdxc/u/state";
|
|
5
|
+
import { text } from "@sdxc/u/typography";
|
|
6
|
+
import { clientEntry } from "remix/component";
|
|
7
|
+
import { Button } from "../components/button.js";
|
|
8
|
+
import { optimisticToggleSync, toneOf } from "./mixins/optimistic-toggle-sync.js";
|
|
9
|
+
/**
|
|
10
|
+
* Renders the form and its toggle button, with both states' content in the markup so a
|
|
11
|
+
* flip is a change of `data-pressed` on the form.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <OptimisticToggle action={`/posts/${post.id}/star`} name="starred" pressed={post.starred}
|
|
15
|
+
* fields={{ returnTo: url.pathname }} labels={{ label: "Star", failed: "Failed" }}
|
|
16
|
+
* pressedContent={<StarIcon fill="currentColor" />} unpressedContent={<StarIcon />} />
|
|
17
|
+
*/
|
|
18
|
+
export const OptimisticToggle = clientEntry("@sdxc/ui/app/optimistic-toggle#OptimisticToggle", function OptimisticToggle(handle) {
|
|
19
|
+
return () => {
|
|
20
|
+
let { action, name, pressed, fields, labels, pressedContent, unpressedContent } = handle.props;
|
|
21
|
+
let hasContent = pressedContent !== undefined || unpressedContent !== undefined;
|
|
22
|
+
let pressedLabel = labels.pressed ?? labels.label;
|
|
23
|
+
let currentLabel = pressed ? pressedLabel : labels.label;
|
|
24
|
+
return (_jsxs("form", { method: "post", action: action, "data-slot": "optimistic-toggle", "data-pressed": pressed ? "" : undefined, mix: [
|
|
25
|
+
optimisticToggleSync({
|
|
26
|
+
failed: labels.failed,
|
|
27
|
+
refused: labels.refused,
|
|
28
|
+
label: labels.label,
|
|
29
|
+
pressedLabel,
|
|
30
|
+
}),
|
|
31
|
+
inlineFlex(),
|
|
32
|
+
items("center"),
|
|
33
|
+
gap(1.5),
|
|
34
|
+
when('&[data-pressed] [data-toggle-content="off"]', hidden()),
|
|
35
|
+
when('&:not([data-pressed]) [data-toggle-content="on"]', hidden()),
|
|
36
|
+
], children: [Object.entries(fields ?? {}).map(([field, value]) => (_jsx("input", { type: "hidden", name: field, value: value }))), _jsx("input", { type: "hidden", name: name, value: pressed ? "false" : "true", "data-toggle-next": "" }), _jsxs(Button, { type: "submit", size: "sm", variant: "ghost", color: toneOf(pressed, false), "aria-pressed": pressed ? "true" : "false", "aria-label": hasContent ? currentLabel : undefined, title: currentLabel, children: [_jsx("span", { "data-toggle-content": "on", children: pressedContent ?? pressedLabel }), _jsx("span", { "data-toggle-content": "off", children: unpressedContent ?? labels.label })] }), _jsx("span", { role: "status", mix: [text("xs"), fg("danger")] })] }));
|
|
37
|
+
};
|
|
38
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The top of an app screen in one order: where it sits (a breadcrumb, or a parent link on a
|
|
3
|
+
* narrow pane), the `<h1>` with its status and one-line description, the actions (secondary,
|
|
4
|
+
* primary, then overflow), and an optional row of tabs. The sticky variant compacts once stuck.
|
|
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
|
+
/** Prop types for {@link PageHeader}. */
|
|
11
|
+
export declare namespace PageHeader {
|
|
12
|
+
/** One step of the trail; the last one is this screen. */
|
|
13
|
+
interface Crumb {
|
|
14
|
+
label: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
}
|
|
17
|
+
/** The screen above this one, linked on a narrow pane in place of the trail. */
|
|
18
|
+
interface Parent {
|
|
19
|
+
href: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
/** One tab under the title; each tab is a URL. */
|
|
23
|
+
interface Tab {
|
|
24
|
+
href: string;
|
|
25
|
+
label: string;
|
|
26
|
+
/** A count after the label, such as open incidents. */
|
|
27
|
+
count?: number;
|
|
28
|
+
/** This tab is the view shown; sets `aria-current="page"`. */
|
|
29
|
+
current?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** Props accepted by {@link PageHeader}. */
|
|
32
|
+
interface Props extends Omit<TagProps<"header">, "title" | "children"> {
|
|
33
|
+
title: RemixNode;
|
|
34
|
+
/** The trail from the app's root to this screen, shown from 40rem of header width. */
|
|
35
|
+
crumbs?: Crumb[];
|
|
36
|
+
/** The breadcrumb landmark's name, such as "Breadcrumb". */
|
|
37
|
+
crumbsLabel?: string;
|
|
38
|
+
/** The parent link shown under 40rem; defaults to the last linked crumb before this screen. */
|
|
39
|
+
parent?: Parent;
|
|
40
|
+
/** One line under the title. */
|
|
41
|
+
description?: RemixNode;
|
|
42
|
+
/** A badge after the title, such as the record's status. */
|
|
43
|
+
status?: RemixNode;
|
|
44
|
+
/** The one primary action, drawn after the secondary actions. */
|
|
45
|
+
primaryAction?: RemixNode;
|
|
46
|
+
/** Secondary actions, drawn first. */
|
|
47
|
+
actions?: RemixNode;
|
|
48
|
+
/** An overflow menu's trigger and menu, drawn last, so a destructive item in it comes last. */
|
|
49
|
+
overflow?: RemixNode;
|
|
50
|
+
tabs?: Tab[];
|
|
51
|
+
/** The tabs landmark's name, such as "Monitor views". */
|
|
52
|
+
tabsLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Sticks the header at `--ui-app-sticky-top` and compacts it once stuck: the trail and the
|
|
55
|
+
* description fold away and the title shrinks. Reduced motion keeps it full size.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
sticky?: boolean;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Renders the header. From 40rem the actions end the title's row, the description under both;
|
|
63
|
+
* narrower, they sit beside the title when they fit and after the description otherwise. A
|
|
64
|
+
* sticky header spans the shell's gutter (`--ui-app-gutter`) so content never shows beside it.
|
|
65
|
+
*
|
|
66
|
+
* @param handle Runtime handle carrying the header's props.
|
|
67
|
+
* @returns The render function producing the header's markup.
|
|
68
|
+
* @example
|
|
69
|
+
* <PageHeader crumbsLabel="Breadcrumb" crumbs={[{ label: "Monitors", href: "/monitors" }, { label: "api.acme.dev" }]} title="api.acme.dev" status={<Badge color="success">Up</Badge>} actions={<Button variant="outline">Pause</Button>} primaryAction={<Button>Edit monitor</Button>} />
|
|
70
|
+
*/
|
|
71
|
+
export declare function PageHeader(handle: Handle<PageHeader.Props>): () => import("remix/component").RemixElement;
|