@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,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the links and hidden fields a list's URL-held view needs: a link that drops one
|
|
3
|
+
* filter, one that clears them all, one that sets a single parameter, and the parameters a
|
|
4
|
+
* GET form must carry so submitting one control keeps the state every other control wrote.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Parameters that point at a position in a result set, dropped by every link here because a
|
|
11
|
+
* position in the old results means nothing once the query changes.
|
|
12
|
+
*/
|
|
13
|
+
export const PAGINATION_PARAMS = ["page", "cursor"];
|
|
14
|
+
/**
|
|
15
|
+
* Origin a relative URL resolves against; only the path and query of the result are read.
|
|
16
|
+
*/
|
|
17
|
+
const RELATIVE_BASE = "http://localhost";
|
|
18
|
+
/**
|
|
19
|
+
* Parses `url` whether it arrives absolute (a request URL) or as a path with a query.
|
|
20
|
+
*
|
|
21
|
+
* @param url The page's current URL.
|
|
22
|
+
* @returns A copy that is safe to change.
|
|
23
|
+
*/
|
|
24
|
+
function toURL(url) {
|
|
25
|
+
return new URL(url.toString(), RELATIVE_BASE);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Writes `url` back as a same-origin path, so a link reads the same on any host and a hash
|
|
29
|
+
* pointing into the old results is dropped.
|
|
30
|
+
*
|
|
31
|
+
* @param url The changed URL.
|
|
32
|
+
* @returns The path, plus the query when one remains.
|
|
33
|
+
*/
|
|
34
|
+
function toHref(url) {
|
|
35
|
+
let search = url.searchParams.toString();
|
|
36
|
+
return search ? `${url.pathname}?${search}` : url.pathname;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Deletes the position parameters in `reset` from `url` in place.
|
|
40
|
+
*
|
|
41
|
+
* @param url The URL being changed.
|
|
42
|
+
* @param reset Parameter names to drop.
|
|
43
|
+
*/
|
|
44
|
+
function dropAll(url, reset) {
|
|
45
|
+
for (let name of reset)
|
|
46
|
+
url.searchParams.delete(name);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The link a filter chip's remove control points at: `url` without the `name` parameter, or
|
|
50
|
+
* without only its `value` when one is given, and back on the first page of results.
|
|
51
|
+
*
|
|
52
|
+
* @param url The page's current URL.
|
|
53
|
+
* @param name The filter's parameter.
|
|
54
|
+
* @param value The one value to drop; omitted drops every value of the parameter.
|
|
55
|
+
* @param reset Position parameters to drop. Defaults to {@link PAGINATION_PARAMS}.
|
|
56
|
+
* @returns A same-origin path with the remaining query.
|
|
57
|
+
* @example removeFilterHref("/monitors?status=down&status=paused&page=3", "status", "down") // "/monitors?status=paused"
|
|
58
|
+
* @example removeFilterHref(request.url, "region") // every region value dropped
|
|
59
|
+
*/
|
|
60
|
+
export function removeFilterHref(url, name, value, reset = PAGINATION_PARAMS) {
|
|
61
|
+
let next = toURL(url);
|
|
62
|
+
if (value === undefined)
|
|
63
|
+
next.searchParams.delete(name);
|
|
64
|
+
else
|
|
65
|
+
next.searchParams.delete(name, value);
|
|
66
|
+
dropAll(next, reset);
|
|
67
|
+
return toHref(next);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The link "Clear filters" points at: `url` without any of the `names` parameters, keeping
|
|
71
|
+
* the tab, sort and view parameters so clearing filters changes nothing else on the page.
|
|
72
|
+
*
|
|
73
|
+
* @param url The page's current URL.
|
|
74
|
+
* @param names Every filter parameter the page offers.
|
|
75
|
+
* @param reset Position parameters to drop. Defaults to {@link PAGINATION_PARAMS}.
|
|
76
|
+
* @returns A same-origin path with the remaining query.
|
|
77
|
+
* @example clearFiltersHref("/issues?state=open&label=bug&q=crash", ["label", "q"]) // "/issues?state=open"
|
|
78
|
+
*/
|
|
79
|
+
export function clearFiltersHref(url, names, reset = PAGINATION_PARAMS) {
|
|
80
|
+
let next = toURL(url);
|
|
81
|
+
for (let name of names)
|
|
82
|
+
next.searchParams.delete(name);
|
|
83
|
+
dropAll(next, reset);
|
|
84
|
+
return toHref(next);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The link a single-choice control (a sort order, a refresh interval) points at: `url` with
|
|
88
|
+
* `name` set to `value` alone, or removed when `value` is `null` so the default applies.
|
|
89
|
+
*
|
|
90
|
+
* @param url The page's current URL.
|
|
91
|
+
* @param name The parameter to set.
|
|
92
|
+
* @param value Its new value; `null` removes it.
|
|
93
|
+
* @param reset Position parameters to drop. Defaults to {@link PAGINATION_PARAMS}.
|
|
94
|
+
* @returns A same-origin path with the updated query.
|
|
95
|
+
* @example setParamHref("/monitors?status=down", "sort", "name") // "/monitors?status=down&sort=name"
|
|
96
|
+
*/
|
|
97
|
+
export function setParamHref(url, name, value, reset = PAGINATION_PARAMS) {
|
|
98
|
+
let next = toURL(url);
|
|
99
|
+
if (value === null)
|
|
100
|
+
next.searchParams.delete(name);
|
|
101
|
+
else
|
|
102
|
+
next.searchParams.set(name, value);
|
|
103
|
+
dropAll(next, reset);
|
|
104
|
+
return toHref(next);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The parameters a GET form re-submits as hidden fields: every pair in `url` except the ones
|
|
108
|
+
* its own controls write and the position parameters, in their original order, so one form
|
|
109
|
+
* never erases what a sibling form or link put in the URL.
|
|
110
|
+
*
|
|
111
|
+
* @param url The page's current URL.
|
|
112
|
+
* @param owned Parameters the form's own controls write.
|
|
113
|
+
* @param reset Position parameters to drop. Defaults to {@link PAGINATION_PARAMS}.
|
|
114
|
+
* @returns Name/value pairs, repeated names kept.
|
|
115
|
+
* @example carriedParams("/issues?state=open&label=bug&page=2", ["label"]) // [["state", "open"]]
|
|
116
|
+
*/
|
|
117
|
+
export function carriedParams(url, owned, reset = PAGINATION_PARAMS) {
|
|
118
|
+
let skip = new Set([...owned, ...reset]);
|
|
119
|
+
return [...toURL(url).searchParams].filter(([name]) => !skip.has(name));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Every value `url` holds for `name`, the way a repeated GET parameter arrives.
|
|
123
|
+
*
|
|
124
|
+
* @param url The page's current URL.
|
|
125
|
+
* @param name The parameter to read.
|
|
126
|
+
* @returns Its values in order; empty when absent.
|
|
127
|
+
*/
|
|
128
|
+
export function paramValues(url, name) {
|
|
129
|
+
return toURL(url)
|
|
130
|
+
.searchParams.getAll(name)
|
|
131
|
+
.filter((value) => value !== "");
|
|
132
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges the groups a keyboard help sheet is rendered with and the rows the page's shortcut
|
|
3
|
+
* registry holds, so a shortcut registered in the browser still reaches the sheet the server
|
|
4
|
+
* drew, and keys listed twice, under any label, appear once.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { Shortcuts } from "../behaviors/shortcuts.js";
|
|
10
|
+
import type { KeyboardHelp } from "../keyboard-help.js";
|
|
11
|
+
/**
|
|
12
|
+
* Merges the server's groups with the registry's rows, keeping the server's order and appending
|
|
13
|
+
* rows and groups it lacks. Keys decide what a shortcut is: a row whose every alternative is
|
|
14
|
+
* already listed is dropped, so the first label seen for those keys, the server's first, wins.
|
|
15
|
+
*
|
|
16
|
+
* @param groups The groups passed as props.
|
|
17
|
+
* @param entries The registry's rows.
|
|
18
|
+
* @param other The heading for rows that name no group.
|
|
19
|
+
* @returns The groups the sheet shows, empty groups dropped.
|
|
20
|
+
*/
|
|
21
|
+
export declare function mergeShortcutGroups(groups: KeyboardHelp.Group[], entries: Shortcuts.Entry[], other: string): KeyboardHelp.Group[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges the groups a keyboard help sheet is rendered with and the rows the page's shortcut
|
|
3
|
+
* registry holds, so a shortcut registered in the browser still reaches the sheet the server
|
|
4
|
+
* drew, and keys listed twice, under any label, appear once.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import { shortcutAlternatives } from "../behaviors/shortcuts.js";
|
|
10
|
+
/** One alternative as a comparable key, its sequence steps joined by single spaces. */
|
|
11
|
+
function normalizeAlternative(alternative) {
|
|
12
|
+
return alternative
|
|
13
|
+
.split(/\s+/)
|
|
14
|
+
.filter((step) => step !== "")
|
|
15
|
+
.join(" ");
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Merges the server's groups with the registry's rows, keeping the server's order and appending
|
|
19
|
+
* rows and groups it lacks. Keys decide what a shortcut is: a row whose every alternative is
|
|
20
|
+
* already listed is dropped, so the first label seen for those keys, the server's first, wins.
|
|
21
|
+
*
|
|
22
|
+
* @param groups The groups passed as props.
|
|
23
|
+
* @param entries The registry's rows.
|
|
24
|
+
* @param other The heading for rows that name no group.
|
|
25
|
+
* @returns The groups the sheet shows, empty groups dropped.
|
|
26
|
+
*/
|
|
27
|
+
export function mergeShortcutGroups(groups, entries, other) {
|
|
28
|
+
let merged = [];
|
|
29
|
+
let seen = new Set();
|
|
30
|
+
let add = (title, row) => {
|
|
31
|
+
let alternatives = shortcutAlternatives(row.keys).map(normalizeAlternative);
|
|
32
|
+
if (alternatives.every((key) => seen.has(key)))
|
|
33
|
+
return;
|
|
34
|
+
for (let key of alternatives)
|
|
35
|
+
seen.add(key);
|
|
36
|
+
let group = merged.find((candidate) => candidate.title === title);
|
|
37
|
+
if (group === undefined) {
|
|
38
|
+
group = { title, shortcuts: [] };
|
|
39
|
+
merged.push(group);
|
|
40
|
+
}
|
|
41
|
+
group.shortcuts.push(row);
|
|
42
|
+
};
|
|
43
|
+
for (let group of groups) {
|
|
44
|
+
if (!merged.some((candidate) => candidate.title === group.title)) {
|
|
45
|
+
merged.push({ title: group.title, shortcuts: [] });
|
|
46
|
+
}
|
|
47
|
+
for (let row of group.shortcuts)
|
|
48
|
+
add(group.title, row);
|
|
49
|
+
}
|
|
50
|
+
for (let entry of entries)
|
|
51
|
+
add(entry.group ?? other, { keys: entry.keys, label: entry.label });
|
|
52
|
+
return merged.filter((group) => group.shortcuts.length > 0);
|
|
53
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The split view's remembered layout: each resizable pane's share of the screen and
|
|
3
|
+
* which panes are collapsed, written to one cookie so the next server render draws the
|
|
4
|
+
* screen the way the reader left it, ahead of any script.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
/** Cookie a split view stores its layout in unless it names its own. */
|
|
10
|
+
export declare const SPLIT_VIEW_COOKIE = "ui-split-view";
|
|
11
|
+
/** A split view's panes, in screen order. */
|
|
12
|
+
export type SplitViewPane = "sidebar" | "list" | "detail";
|
|
13
|
+
/** A split view's remembered layout. */
|
|
14
|
+
export interface SplitViewLayout {
|
|
15
|
+
/** The sidebar's share of the view's width, as a percentage. */
|
|
16
|
+
sidebar?: number;
|
|
17
|
+
/** The list's share of the view's width, as a percentage. */
|
|
18
|
+
list?: number;
|
|
19
|
+
/** Panes the reader collapsed: the sidebar to its rail, the list or detail out of view. */
|
|
20
|
+
collapsed: SplitViewPane[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Writes a layout as the cookie's value: `sidebar:list:collapsed,panes`, sizes rounded to
|
|
24
|
+
* two decimals.
|
|
25
|
+
*
|
|
26
|
+
* @param layout The layout to store.
|
|
27
|
+
* @returns The cookie value.
|
|
28
|
+
* @example serializeSplitViewLayout({ sidebar: 18, list: 30, collapsed: ["sidebar"] }) // "18:30:sidebar"
|
|
29
|
+
*/
|
|
30
|
+
export declare function serializeSplitViewLayout(layout: SplitViewLayout): string;
|
|
31
|
+
/**
|
|
32
|
+
* Reads a cookie value back into a layout, dropping any field that does not parse, so a
|
|
33
|
+
* tampered or stale cookie falls back to the default layout field by field.
|
|
34
|
+
*
|
|
35
|
+
* @param value The cookie's value.
|
|
36
|
+
* @returns The layout it stores.
|
|
37
|
+
*/
|
|
38
|
+
export declare function parseSplitViewLayout(value: string): SplitViewLayout;
|
|
39
|
+
/**
|
|
40
|
+
* Reads a split view's layout from a request's `Cookie` header, for the server render
|
|
41
|
+
* that passes it to `SplitView` as `layout`.
|
|
42
|
+
*
|
|
43
|
+
* @param cookieHeader The request's `Cookie` header.
|
|
44
|
+
* @param name The cookie the view stores its layout in.
|
|
45
|
+
* @returns The stored layout, or `undefined` when the reader has none yet.
|
|
46
|
+
* @example <SplitView layout={readSplitViewLayout(request.headers.get("Cookie"))} … />
|
|
47
|
+
*/
|
|
48
|
+
export declare function readSplitViewLayout(cookieHeader: string | null | undefined, name?: string): SplitViewLayout | undefined;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The split view's remembered layout: each resizable pane's share of the screen and
|
|
3
|
+
* which panes are collapsed, written to one cookie so the next server render draws the
|
|
4
|
+
* screen the way the reader left it, ahead of any script.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
/** Cookie a split view stores its layout in unless it names its own. */
|
|
10
|
+
export const SPLIT_VIEW_COOKIE = "ui-split-view";
|
|
11
|
+
/** Every pane name, which a cookie value is checked against. */
|
|
12
|
+
const PANES = ["sidebar", "list", "detail"];
|
|
13
|
+
/**
|
|
14
|
+
* Reads a size field: a percentage between 0 and 100, or nothing.
|
|
15
|
+
*
|
|
16
|
+
* @param raw The field as stored.
|
|
17
|
+
* @returns The percentage, or `undefined` for an empty or out-of-range field.
|
|
18
|
+
*/
|
|
19
|
+
function parseSize(raw) {
|
|
20
|
+
if (raw === undefined || raw === "")
|
|
21
|
+
return undefined;
|
|
22
|
+
let value = Number(raw);
|
|
23
|
+
return Number.isFinite(value) && value > 0 && value < 100 ? value : undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Writes a layout as the cookie's value: `sidebar:list:collapsed,panes`, sizes rounded to
|
|
27
|
+
* two decimals.
|
|
28
|
+
*
|
|
29
|
+
* @param layout The layout to store.
|
|
30
|
+
* @returns The cookie value.
|
|
31
|
+
* @example serializeSplitViewLayout({ sidebar: 18, list: 30, collapsed: ["sidebar"] }) // "18:30:sidebar"
|
|
32
|
+
*/
|
|
33
|
+
export function serializeSplitViewLayout(layout) {
|
|
34
|
+
let size = (value) => value === undefined ? "" : String(Math.round(value * 100) / 100);
|
|
35
|
+
return `${size(layout.sidebar)}:${size(layout.list)}:${layout.collapsed.join(",")}`;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Reads a cookie value back into a layout, dropping any field that does not parse, so a
|
|
39
|
+
* tampered or stale cookie falls back to the default layout field by field.
|
|
40
|
+
*
|
|
41
|
+
* @param value The cookie's value.
|
|
42
|
+
* @returns The layout it stores.
|
|
43
|
+
*/
|
|
44
|
+
export function parseSplitViewLayout(value) {
|
|
45
|
+
let [sidebar, list, collapsed = ""] = decodeURIComponent(value).split(":");
|
|
46
|
+
return {
|
|
47
|
+
sidebar: parseSize(sidebar),
|
|
48
|
+
list: parseSize(list),
|
|
49
|
+
collapsed: PANES.filter((pane) => collapsed.split(",").includes(pane)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Reads a split view's layout from a request's `Cookie` header, for the server render
|
|
54
|
+
* that passes it to `SplitView` as `layout`.
|
|
55
|
+
*
|
|
56
|
+
* @param cookieHeader The request's `Cookie` header.
|
|
57
|
+
* @param name The cookie the view stores its layout in.
|
|
58
|
+
* @returns The stored layout, or `undefined` when the reader has none yet.
|
|
59
|
+
* @example <SplitView layout={readSplitViewLayout(request.headers.get("Cookie"))} … />
|
|
60
|
+
*/
|
|
61
|
+
export function readSplitViewLayout(cookieHeader, name = SPLIT_VIEW_COOKIE) {
|
|
62
|
+
if (!cookieHeader)
|
|
63
|
+
return undefined;
|
|
64
|
+
for (let pair of cookieHeader.split(";")) {
|
|
65
|
+
let separator = pair.indexOf("=");
|
|
66
|
+
if (separator === -1 || pair.slice(0, separator).trim() !== name)
|
|
67
|
+
continue;
|
|
68
|
+
return parseSplitViewLayout(pair.slice(separator + 1).trim());
|
|
69
|
+
}
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "Display" popover beside a list: layout, grouping, ordering, density and the visible
|
|
3
|
+
* properties, each a field of one GET form, so the URL holds the view and a link shares it.
|
|
4
|
+
* "Set as default" posts the same fields to an endpoint that stores them for the reader.
|
|
5
|
+
* Inline, it draws the fields alone, for a menu that already has a trigger.
|
|
6
|
+
*
|
|
7
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
8
|
+
* @copyright Sergio Xalambrí 2026
|
|
9
|
+
*/
|
|
10
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
11
|
+
/** Prop types for {@link ViewOptions}. */
|
|
12
|
+
export declare namespace ViewOptions {
|
|
13
|
+
/** One choice of a field. */
|
|
14
|
+
interface Choice {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
/** A glyph drawn with the label in a segmented control, decorative. */
|
|
18
|
+
icon?: RemixNode;
|
|
19
|
+
}
|
|
20
|
+
/** A single-choice field: a segmented control (layout, density) or a select (grouping, ordering). */
|
|
21
|
+
interface Field {
|
|
22
|
+
/** The search parameter it writes. */
|
|
23
|
+
name?: string;
|
|
24
|
+
options: Choice[];
|
|
25
|
+
/** The choice the list uses while the URL names none. */
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
}
|
|
28
|
+
/** The visible-properties field: one toggle chip per property, written as a repeated parameter. */
|
|
29
|
+
interface Properties {
|
|
30
|
+
/** The search parameter it writes. @default "props" */
|
|
31
|
+
name?: string;
|
|
32
|
+
options: Choice[];
|
|
33
|
+
/** The properties shown while the URL names none. */
|
|
34
|
+
defaultValue: string[];
|
|
35
|
+
}
|
|
36
|
+
/** Every string the popover shows. */
|
|
37
|
+
interface Labels {
|
|
38
|
+
/** The trigger's text and the popover's accessible name, such as "Display". */
|
|
39
|
+
trigger: string;
|
|
40
|
+
layout: string;
|
|
41
|
+
grouping: string;
|
|
42
|
+
ordering: string;
|
|
43
|
+
density: string;
|
|
44
|
+
properties: string;
|
|
45
|
+
apply: string;
|
|
46
|
+
/** The button that stores this view as the reader's default, such as "Set as default". */
|
|
47
|
+
setDefault: string;
|
|
48
|
+
}
|
|
49
|
+
/** Props accepted by {@link ViewOptions}; the host is a `<div>`. */
|
|
50
|
+
interface Props extends Omit<TagProps<"div">, "children" | "id"> {
|
|
51
|
+
/** Prefix for the popover and form ids; unique on the page. */
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The page's current URL, where every applied value is read from.
|
|
55
|
+
*
|
|
56
|
+
* @default "/", a page with no parameters
|
|
57
|
+
*/
|
|
58
|
+
url?: URL | string;
|
|
59
|
+
/** Where Apply submits. Defaults to the current path. */
|
|
60
|
+
action?: string;
|
|
61
|
+
/** @default name "layout" */
|
|
62
|
+
layout?: Field;
|
|
63
|
+
/** @default name "group" */
|
|
64
|
+
grouping?: Field;
|
|
65
|
+
/** @default name "order" */
|
|
66
|
+
ordering?: Field;
|
|
67
|
+
/** @default name "density" */
|
|
68
|
+
density?: Field;
|
|
69
|
+
properties?: Properties;
|
|
70
|
+
/** Where "Set as default" posts the fields; omitted hides the button. */
|
|
71
|
+
setDefault?: {
|
|
72
|
+
action: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Draws the form in place, without its own trigger and popover, for a menu that holds
|
|
76
|
+
* it among other view controls, such as a filter bar's `options`.
|
|
77
|
+
*/
|
|
78
|
+
inline?: boolean;
|
|
79
|
+
labels: Labels;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Renders the trigger and its popover. Every field reads its value from `url`, falling back to
|
|
84
|
+
* the field's default, and Apply submits them with every other parameter carried as hidden
|
|
85
|
+
* fields, so the filters and tab the page shows survive a view change.
|
|
86
|
+
*
|
|
87
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
88
|
+
* @returns The render function producing the trigger and popover.
|
|
89
|
+
* @example
|
|
90
|
+
* <ViewOptions
|
|
91
|
+
* id="monitors-view"
|
|
92
|
+
* url={request.url}
|
|
93
|
+
* layout={{ defaultValue: "table", options: [{ value: "table", label: "Table", icon: <TableIcon /> }, { value: "grid", label: "Grid", icon: <LayoutGridIcon /> }] }}
|
|
94
|
+
* density={{ defaultValue: "compact", options: [{ value: "compact", label: "Compact" }, { value: "comfortable", label: "Comfortable" }] }}
|
|
95
|
+
* setDefault={{ action: "/settings/views/monitors" }}
|
|
96
|
+
* labels={labels}
|
|
97
|
+
* />
|
|
98
|
+
*/
|
|
99
|
+
export declare function ViewOptions(handle: Handle<ViewOptions.Props>): () => import("remix/component").RemixElement;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { SlidersHorizontalIcon } from "@sdxc/icons";
|
|
3
|
+
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
4
|
+
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
5
|
+
import { rounded } from "@sdxc/u/effects";
|
|
6
|
+
import { cursor, mergeMix } from "@sdxc/u/general";
|
|
7
|
+
import { flex, flexWrap, gap, inlineBlock, inlineFlex, items, justify, shrink, vstack, } from "@sdxc/u/layout";
|
|
8
|
+
import { bs, is, m, maxIs, minIs, p, pb, pi } from "@sdxc/u/size";
|
|
9
|
+
import { has, hover, when } from "@sdxc/u/state";
|
|
10
|
+
import { nowrap, text, weight } from "@sdxc/u/typography";
|
|
11
|
+
import { Button } from "../components/button.js";
|
|
12
|
+
import { Popover } from "../components/popover.js";
|
|
13
|
+
import { Select } from "../components/select.js";
|
|
14
|
+
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
15
|
+
import { segmentedItem, segmentedTrack } from "../styles/segmented-control.js";
|
|
16
|
+
import { carriedParams, paramValues } from "./utils/search-params.js";
|
|
17
|
+
/** The URL read when `url` is unset: a page with nothing applied. */
|
|
18
|
+
const DEFAULT_URL = "/";
|
|
19
|
+
/** The parameter each field writes when its `name` is unset. */
|
|
20
|
+
const DEFAULT_NAMES = {
|
|
21
|
+
layout: "layout",
|
|
22
|
+
grouping: "group",
|
|
23
|
+
ordering: "order",
|
|
24
|
+
density: "density",
|
|
25
|
+
properties: "props",
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Renders the trigger and its popover. Every field reads its value from `url`, falling back to
|
|
29
|
+
* the field's default, and Apply submits them with every other parameter carried as hidden
|
|
30
|
+
* fields, so the filters and tab the page shows survive a view change.
|
|
31
|
+
*
|
|
32
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
33
|
+
* @returns The render function producing the trigger and popover.
|
|
34
|
+
* @example
|
|
35
|
+
* <ViewOptions
|
|
36
|
+
* id="monitors-view"
|
|
37
|
+
* url={request.url}
|
|
38
|
+
* layout={{ defaultValue: "table", options: [{ value: "table", label: "Table", icon: <TableIcon /> }, { value: "grid", label: "Grid", icon: <LayoutGridIcon /> }] }}
|
|
39
|
+
* density={{ defaultValue: "compact", options: [{ value: "compact", label: "Compact" }, { value: "comfortable", label: "Comfortable" }] }}
|
|
40
|
+
* setDefault={{ action: "/settings/views/monitors" }}
|
|
41
|
+
* labels={labels}
|
|
42
|
+
* />
|
|
43
|
+
*/
|
|
44
|
+
export function ViewOptions(handle) {
|
|
45
|
+
return () => {
|
|
46
|
+
let { id, url = DEFAULT_URL, action, layout, grouping, ordering, density, properties, setDefault, inline, labels, mix, ...rest } = handle.props;
|
|
47
|
+
let popoverId = `${id}-popover`;
|
|
48
|
+
let names = {
|
|
49
|
+
layout: layout?.name ?? DEFAULT_NAMES.layout,
|
|
50
|
+
grouping: grouping?.name ?? DEFAULT_NAMES.grouping,
|
|
51
|
+
ordering: ordering?.name ?? DEFAULT_NAMES.ordering,
|
|
52
|
+
density: density?.name ?? DEFAULT_NAMES.density,
|
|
53
|
+
properties: properties?.name ?? DEFAULT_NAMES.properties,
|
|
54
|
+
};
|
|
55
|
+
let owned = [
|
|
56
|
+
layout ? names.layout : null,
|
|
57
|
+
grouping ? names.grouping : null,
|
|
58
|
+
ordering ? names.ordering : null,
|
|
59
|
+
density ? names.density : null,
|
|
60
|
+
properties ? names.properties : null,
|
|
61
|
+
].filter((name) => name !== null);
|
|
62
|
+
let form = (_jsxs("form", { method: "get", action: action, "aria-label": inline ? labels.trigger : undefined, mix: [vstack({ gap: 3 })], children: [carriedParams(url, owned).map(([name, value]) => (_jsx("input", { type: "hidden", name: name, value: value }))), layout ? (_jsx(Segmented, { name: names.layout, label: labels.layout, field: layout, value: chosen(url, names.layout, layout) })) : null, grouping ? (_jsx(SelectRow, { id: `${id}-grouping`, name: names.grouping, label: labels.grouping, field: grouping, value: chosen(url, names.grouping, grouping) })) : null, ordering ? (_jsx(SelectRow, { id: `${id}-ordering`, name: names.ordering, label: labels.ordering, field: ordering, value: chosen(url, names.ordering, ordering) })) : null, density ? (_jsx(Segmented, { name: names.density, label: labels.density, field: density, value: chosen(url, names.density, density) })) : null, properties ? (_jsx(PropertyChips, { name: names.properties, label: labels.properties, field: properties, selected: shownProperties(url, names.properties, properties) })) : null, _jsxs("div", { mix: [flex(), items("center"), justify("end"), gap(2)], children: [setDefault ? (_jsx(Button, { type: "submit", variant: "ghost", size: "sm", formMethod: "post", formAction: setDefault.action, "data-slot": "view-options-default", children: labels.setDefault })) : null, _jsx(Button, { type: "submit", size: "sm", color: "brand", "data-slot": "view-options-apply", children: labels.apply })] })] }));
|
|
63
|
+
if (inline) {
|
|
64
|
+
return (_jsx("div", { ...rest, "data-slot": "view-options", "data-inline": "", mix: mergeMix([minIs(0)], mix), children: form }));
|
|
65
|
+
}
|
|
66
|
+
return (_jsxs("div", { ...rest, "data-slot": "view-options", mix: mergeMix([inlineBlock()], mix), children: [_jsxs(Button, { variant: "ghost", size: "sm", commandfor: popoverId, command: "toggle-popover", "data-slot": "view-options-trigger", mix: [fg("neutral"), weight(400), when("& > svg", fg("neutral.muted"))], children: [_jsx(SlidersHorizontalIcon, { size: 16, "aria-hidden": "true" }), labels.trigger] }), _jsx(Popover, { id: popoverId, placement: "bottom-end", role: "dialog", "aria-label": labels.trigger, mix: [p(3), is("18rem"), maxIs("calc(100vw - 2rem)")], children: form })] }));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The value a single-choice field shows: the URL's, when it names one of the field's options,
|
|
71
|
+
* else the field's default, so a stale or hand-typed value never leaves the control blank.
|
|
72
|
+
*
|
|
73
|
+
* @param url The page's current URL.
|
|
74
|
+
* @param name The field's parameter.
|
|
75
|
+
* @param field The field.
|
|
76
|
+
* @returns The value to mark chosen.
|
|
77
|
+
*/
|
|
78
|
+
function chosen(url, name, field) {
|
|
79
|
+
let value = paramValues(url, name)[0];
|
|
80
|
+
return field.options.some((option) => option.value === value) && value !== undefined
|
|
81
|
+
? value
|
|
82
|
+
: field.defaultValue;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The properties shown: the URL's list once the parameter is present, even empty (every chip
|
|
86
|
+
* off), else the default list. The form always sends an empty value first, which is what
|
|
87
|
+
* marks the parameter present after the reader turns every chip off.
|
|
88
|
+
*
|
|
89
|
+
* @param url The page's current URL.
|
|
90
|
+
* @param name The parameter.
|
|
91
|
+
* @param field The properties field.
|
|
92
|
+
* @returns The property values to mark on.
|
|
93
|
+
*/
|
|
94
|
+
function shownProperties(url, name, field) {
|
|
95
|
+
let present = new URL(url.toString(), "http://localhost").searchParams.has(name);
|
|
96
|
+
return present ? paramValues(url, name) : field.defaultValue;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Renders a single-choice field as a segmented control of native radios, so arrow keys move
|
|
100
|
+
* between choices and the chosen one submits under `name`.
|
|
101
|
+
*
|
|
102
|
+
* @param handle Runtime handle carrying the field.
|
|
103
|
+
* @returns The render function producing the fieldset.
|
|
104
|
+
*/
|
|
105
|
+
function Segmented(handle) {
|
|
106
|
+
return () => {
|
|
107
|
+
let { name, label, field, value } = handle.props;
|
|
108
|
+
return (_jsxs("fieldset", { "data-slot": "view-options-segmented", "data-name": name, mix: [
|
|
109
|
+
m(0),
|
|
110
|
+
p(0),
|
|
111
|
+
border({ width: 0 }),
|
|
112
|
+
flex(),
|
|
113
|
+
items("center"),
|
|
114
|
+
justify("between"),
|
|
115
|
+
gap(3),
|
|
116
|
+
minIs(0),
|
|
117
|
+
], children: [_jsx("legend", { mix: [visuallyHidden()], children: label }), _jsx("span", { "aria-hidden": "true", mix: [text("sm"), fg("neutral"), nowrap()], children: label }), _jsx("span", { mix: [segmentedTrack(), minIs(0)], children: field.options.map((option) => (_jsxs("label", { title: option.label, mix: [
|
|
118
|
+
interactiveTransition(),
|
|
119
|
+
inlineFlex(),
|
|
120
|
+
items("center"),
|
|
121
|
+
justify("center"),
|
|
122
|
+
gap(1.5),
|
|
123
|
+
bs(7),
|
|
124
|
+
pi(2),
|
|
125
|
+
text("sm"),
|
|
126
|
+
cursor("pointer"),
|
|
127
|
+
nowrap(),
|
|
128
|
+
segmentedItem({
|
|
129
|
+
selected: "&:has(input:checked)",
|
|
130
|
+
focused: "&:has(input:focus-visible)",
|
|
131
|
+
}),
|
|
132
|
+
when("& > svg", shrink(0)),
|
|
133
|
+
], children: [_jsx("input", { type: "radio", name: name, value: option.value, defaultChecked: option.value === value, mix: [visuallyHidden()] }), option.icon, option.icon ? _jsx("span", { mix: [visuallyHidden()], children: option.label }) : option.label] }))) })] }));
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Renders a single-choice field with many options (grouping, ordering) as a labelled select
|
|
138
|
+
* on the same row as its label.
|
|
139
|
+
*
|
|
140
|
+
* @param handle Runtime handle carrying the field.
|
|
141
|
+
* @returns The render function producing the row.
|
|
142
|
+
*/
|
|
143
|
+
function SelectRow(handle) {
|
|
144
|
+
return () => {
|
|
145
|
+
let { id, name, label, field, value } = handle.props;
|
|
146
|
+
return (_jsxs("div", { mix: [flex(), items("center"), justify("between"), gap(3)], children: [_jsx("label", { for: id, mix: [text("sm"), fg("neutral"), nowrap()], children: label }), _jsx(Select, { id: id, name: name, mix: [is("10rem"), bs(8), minIs(0)], children: field.options.map((option) => (_jsx("option", { value: option.value, selected: option.value === value, children: option.label }))) })] }));
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Renders the visible properties as toggle chips: native checkboxes under one repeated name,
|
|
151
|
+
* behind an empty value that keeps the parameter present when every chip is off.
|
|
152
|
+
*
|
|
153
|
+
* @param handle Runtime handle carrying the field.
|
|
154
|
+
* @returns The render function producing the fieldset.
|
|
155
|
+
*/
|
|
156
|
+
function PropertyChips(handle) {
|
|
157
|
+
return () => {
|
|
158
|
+
let { name, label, field, selected } = handle.props;
|
|
159
|
+
return (_jsxs("fieldset", { "data-slot": "view-options-properties", mix: [m(0), p(0), border({ width: 0 }), vstack({ gap: 2 }), minIs(0)], children: [_jsx("legend", { mix: [pb(2), text("sm"), fg("neutral")], children: label }), _jsx("input", { type: "hidden", name: name, value: "" }), _jsx("div", { mix: [flex(), flexWrap(), gap(1.5)], children: field.options.map((option) => (_jsxs("label", { mix: [
|
|
160
|
+
interactiveTransition(),
|
|
161
|
+
inlineFlex(),
|
|
162
|
+
items("center"),
|
|
163
|
+
gap(1),
|
|
164
|
+
bs(7),
|
|
165
|
+
pi(2.5),
|
|
166
|
+
rounded("full"),
|
|
167
|
+
border({ width: 1, color: "neutral.border" }),
|
|
168
|
+
text("xs"),
|
|
169
|
+
weight(500),
|
|
170
|
+
fg("neutral"),
|
|
171
|
+
cursor("pointer"),
|
|
172
|
+
nowrap(),
|
|
173
|
+
hover(bg("neutral.bg-tint-hover")),
|
|
174
|
+
has("input:checked", [
|
|
175
|
+
bg("brand.tint"),
|
|
176
|
+
border("brand.border"),
|
|
177
|
+
fg("brand.emphasis"),
|
|
178
|
+
]),
|
|
179
|
+
has("input:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
180
|
+
], children: [_jsx("input", { type: "checkbox", name: name, value: option.value, defaultChecked: selected.includes(option.value), mix: [visuallyHidden()] }), option.icon, option.label] }))) })] }));
|
|
181
|
+
};
|
|
182
|
+
}
|
|
@@ -8,9 +8,4 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from "./announcer.js";
|
|
10
10
|
export * from "./calendar-model.js";
|
|
11
|
-
export * from "./drag-session.js";
|
|
12
11
|
export * from "./filter-model.js";
|
|
13
|
-
export * from "./resize-session.js";
|
|
14
|
-
export * from "./scroll-follow-model.js";
|
|
15
|
-
export * from "./selection-model.js";
|
|
16
|
-
export * from "./toaster.js";
|
package/dist/behaviors/index.js
CHANGED
|
@@ -8,9 +8,4 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from "./announcer.js";
|
|
10
10
|
export * from "./calendar-model.js";
|
|
11
|
-
export * from "./drag-session.js";
|
|
12
11
|
export * from "./filter-model.js";
|
|
13
|
-
export * from "./resize-session.js";
|
|
14
|
-
export * from "./scroll-follow-model.js";
|
|
15
|
-
export * from "./selection-model.js";
|
|
16
|
-
export * from "./toaster.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
10
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
11
|
-
import { Button } from "
|
|
11
|
+
import { Button } from "../components/button.js";
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for {@link Attachment} and its compound parts.
|
|
14
14
|
*/
|