@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,155 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { bg, fg } from "@sdxc/u/color";
|
|
3
|
+
import { mergeMix, raw } from "@sdxc/u/general";
|
|
4
|
+
import { container, flex, grow, hstack, relative, vstack } from "@sdxc/u/layout";
|
|
5
|
+
import { bs, minIs } from "@sdxc/u/size";
|
|
6
|
+
import { nowrap, tabularNums, text, weight } from "@sdxc/u/typography";
|
|
7
|
+
import { clientEntry } from "remix/component";
|
|
8
|
+
import { statusStripKeys } from "./mixins/status-strip-keys.js";
|
|
9
|
+
/** Container the strip measures, so its bars tighten in a narrow card rather than a narrow page. */
|
|
10
|
+
const STRIP_CONTAINER = "ui-status-strip";
|
|
11
|
+
/**
|
|
12
|
+
* Share of the strip, from either end, inside which a bar's tooltip aligns to that end instead
|
|
13
|
+
* of centring, so a tooltip near the edge stays inside the strip's box.
|
|
14
|
+
*/
|
|
15
|
+
const EDGE_SHARE = 0.2;
|
|
16
|
+
/**
|
|
17
|
+
* Pins the tooltips of the bars near either end to that end instead of centring them, so a
|
|
18
|
+
* tooltip near the edge stays inside the strip's box. The rule depends only on the bar count, so
|
|
19
|
+
* every strip of the same length shares it.
|
|
20
|
+
*
|
|
21
|
+
* @param count How many bars the strip draws.
|
|
22
|
+
* @returns The rules aligning the oldest and newest bars' tooltips to their ends.
|
|
23
|
+
*/
|
|
24
|
+
function edgeRules(count) {
|
|
25
|
+
let edge = count <= 1 ? 0 : Math.ceil(EDGE_SHARE * (count - 1));
|
|
26
|
+
if (edge === 0)
|
|
27
|
+
return {};
|
|
28
|
+
let rules = {};
|
|
29
|
+
rules[`& > button:nth-child(-n + ${edge})::after`] = {
|
|
30
|
+
insetInlineStart: "0",
|
|
31
|
+
insetInlineEnd: "auto",
|
|
32
|
+
translate: "none",
|
|
33
|
+
};
|
|
34
|
+
rules[`& > button:nth-last-child(-n + ${edge})::after`] = {
|
|
35
|
+
insetInlineStart: "auto",
|
|
36
|
+
insetInlineEnd: "0",
|
|
37
|
+
translate: "none",
|
|
38
|
+
};
|
|
39
|
+
return rules;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Renders one bar per period as a button named by its label and value, inside a toolbar named by
|
|
43
|
+
* `label`, then the caption. The newest bar is the strip's one Tab stop, and {@link StatusStripKeys}
|
|
44
|
+
* moves it with the arrows; a bar's tooltip shows its name on hover and keyboard focus with no script.
|
|
45
|
+
*
|
|
46
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
47
|
+
* @returns The render function producing the strip's markup.
|
|
48
|
+
* @example
|
|
49
|
+
* <StatusStrip
|
|
50
|
+
* label={t("monitor.uptimeWindow")}
|
|
51
|
+
* summary={t("monitor.uptime", { percent: "99.95" })}
|
|
52
|
+
* start={t("time.daysAgo", { count: 90 })}
|
|
53
|
+
* end={t("time.today")}
|
|
54
|
+
* periods={days.map((day) => ({ status: day.status, label: formatDay(day.date), value: formatUptime(day) }))}
|
|
55
|
+
* />
|
|
56
|
+
*/
|
|
57
|
+
export function StatusStrip(handle) {
|
|
58
|
+
return () => {
|
|
59
|
+
let { periods, label, summary, start, end, parts, mix, ...rest } = handle.props;
|
|
60
|
+
let hasCaption = summary !== undefined || start !== undefined || end !== undefined;
|
|
61
|
+
return (_jsxs("div", { "data-slot": "status-strip", ...rest, mix: mergeMix([vstack({ gap: 1.5, align: "stretch" }), minIs(0), container(STRIP_CONTAINER)], mix), children: [_jsx("div", { role: "toolbar", "aria-label": label, "data-slot": "status-strip-bars", mix: [
|
|
62
|
+
relative(),
|
|
63
|
+
flex(),
|
|
64
|
+
bs("var(--ui-status-strip-block-size, 2rem)"),
|
|
65
|
+
/**
|
|
66
|
+
* Every bar and its tooltip is painted from this one rule, so a bar's markup is only
|
|
67
|
+
* its status, Tab order and name. Both gaps, every status and the tooltip's shown
|
|
68
|
+
* state share it, so each always wins whatever order the stylesheet layers land in.
|
|
69
|
+
*/
|
|
70
|
+
raw({
|
|
71
|
+
gap: "1px",
|
|
72
|
+
[`@container ${STRIP_CONTAINER} (min-width: 30rem)`]: {
|
|
73
|
+
gap: "var(--ui-status-strip-gap, 2px)",
|
|
74
|
+
},
|
|
75
|
+
"& > button": {
|
|
76
|
+
position: "relative",
|
|
77
|
+
flexGrow: "1",
|
|
78
|
+
flexBasis: "0%",
|
|
79
|
+
minInlineSize: "0",
|
|
80
|
+
padding: "0",
|
|
81
|
+
border: "none",
|
|
82
|
+
cursor: "default",
|
|
83
|
+
borderRadius: "var(--ui-status-strip-radius, 1px)",
|
|
84
|
+
backgroundColor: "var(--ui-neutral-border)",
|
|
85
|
+
},
|
|
86
|
+
'& > [data-status="up"]': { backgroundColor: "var(--ui-success-bg-solid)" },
|
|
87
|
+
'& > [data-status="degraded"]': { backgroundColor: "var(--ui-warning-bg-solid)" },
|
|
88
|
+
'& > [data-status="down"]': { backgroundColor: "var(--ui-danger-bg-solid)" },
|
|
89
|
+
'& > [data-status="no-data"]': {
|
|
90
|
+
backgroundColor: "transparent",
|
|
91
|
+
backgroundImage: "repeating-linear-gradient(-45deg, var(--ui-neutral-border, color-mix(in oklab, CanvasText 16%, transparent)) 0 1.5px, transparent 1.5px 4px)",
|
|
92
|
+
boxShadow: "inset 0 0 0 1px var(--ui-neutral-border, color-mix(in oklab, CanvasText 16%, transparent))",
|
|
93
|
+
},
|
|
94
|
+
"& > button:hover": { opacity: "0.8" },
|
|
95
|
+
"& > button:focus-visible": {
|
|
96
|
+
outline: "2px solid var(--ui-brand-ring)",
|
|
97
|
+
outlineOffset: "1px",
|
|
98
|
+
zIndex: "1",
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* The tooltip is the bar's own generated box reading its accessible name, so it
|
|
102
|
+
* needs no markup and no script. Hidden, it takes no box at all, so the bars at the
|
|
103
|
+
* edges never widen a page, and shown it wraps inside the strip's width.
|
|
104
|
+
*/
|
|
105
|
+
"& > button::after": {
|
|
106
|
+
content: "attr(aria-label)",
|
|
107
|
+
position: "absolute",
|
|
108
|
+
zIndex: "10",
|
|
109
|
+
display: "none",
|
|
110
|
+
boxSizing: "border-box",
|
|
111
|
+
inlineSize: "max-content",
|
|
112
|
+
maxInlineSize: "100cqi",
|
|
113
|
+
insetBlockEnd: "calc(100% + var(--ui-status-strip-tooltip-gap, 0.375rem))",
|
|
114
|
+
insetInlineStart: "50%",
|
|
115
|
+
translate: "-50% 0",
|
|
116
|
+
paddingInline: "calc(var(--ui-spacing, 0.25rem) * 2)",
|
|
117
|
+
paddingBlock: "var(--ui-spacing, 0.25rem)",
|
|
118
|
+
borderRadius: "var(--ui-radius-md, 0.375rem)",
|
|
119
|
+
color: "var(--ui-neutral-fg-on-solid)",
|
|
120
|
+
backgroundColor: "var(--ui-neutral-bg-solid)",
|
|
121
|
+
boxShadow: "var(--ui-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))",
|
|
122
|
+
fontSize: "var(--ui-text-xs, 0.75rem)",
|
|
123
|
+
lineHeight: "var(--ui-leading-xs, calc(1 / 0.75))",
|
|
124
|
+
fontWeight: "500",
|
|
125
|
+
fontVariantNumeric: "tabular-nums",
|
|
126
|
+
textAlign: "start",
|
|
127
|
+
whiteSpace: "normal",
|
|
128
|
+
pointerEvents: "none",
|
|
129
|
+
},
|
|
130
|
+
"& > button:is(:hover, :focus-visible)::after": { display: "block" },
|
|
131
|
+
}),
|
|
132
|
+
raw(edgeRules(periods.length)),
|
|
133
|
+
parts?.bars,
|
|
134
|
+
], children: periods.map((period, index) => (_jsx("button", { type: "button", tabIndex: index === periods.length - 1 ? 0 : -1, "aria-label": period.value ? `${period.label}, ${period.value}` : period.label, "data-status": period.status, mix: parts?.bar }, index))) }), _jsx(StatusStripKeys, {}), hasCaption ? (_jsxs("div", { "data-slot": "status-strip-caption", mix: [
|
|
135
|
+
hstack({ gap: 2, align: "center" }),
|
|
136
|
+
text("xs"),
|
|
137
|
+
fg("neutral.muted"),
|
|
138
|
+
nowrap(),
|
|
139
|
+
tabularNums(),
|
|
140
|
+
parts?.caption,
|
|
141
|
+
], children: [start === undefined ? null : _jsx("span", { children: start }), _jsx(StatusStripRule, {}), summary === undefined ? null : (_jsx("span", { "data-slot": "status-strip-summary", mix: [fg("neutral"), weight("medium")], children: summary })), summary === undefined ? null : _jsx(StatusStripRule, {}), end === undefined ? null : _jsx("span", { children: end })] })) : null] }));
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Client island behind {@link StatusStrip}'s keyboard navigation: a hidden marker whose
|
|
146
|
+
* `statusStripKeys()` walks the strip it sits in. Loads from `@sdxc/ui/app/status-strip#StatusStripKeys`
|
|
147
|
+
* once the app's browser entry maps it; until then the newest bar stays the strip's one Tab stop.
|
|
148
|
+
*/
|
|
149
|
+
export const StatusStripKeys = clientEntry("@sdxc/ui/app/status-strip#StatusStripKeys", function StatusStripKeys() {
|
|
150
|
+
return () => _jsx("span", { hidden: true, "data-slot": "status-strip-keys", mix: [statusStripKeys()] });
|
|
151
|
+
});
|
|
152
|
+
/** The hairline filling the caption between its words, so the summary sits centred in the window. */
|
|
153
|
+
function StatusStripRule() {
|
|
154
|
+
return () => _jsx("span", { "aria-hidden": "true", mix: [grow(), bs("1px"), bg("neutral.border")] });
|
|
155
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The placement every settings-style action row shares: a button that acts at once sits at
|
|
3
|
+
* the row's end centred on the title's first line, or under the text at its start, and a
|
|
4
|
+
* narrow container always stacks it under the text.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { UtilityMixin } from "@sdxc/u";
|
|
10
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
11
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
12
|
+
/**
|
|
13
|
+
* Where an action row's button sits on a wide container: `"end"` beside the title's first
|
|
14
|
+
* line, for a description of a line or two; `"below"` under the text, for a longer one or
|
|
15
|
+
* one holding a list or warning.
|
|
16
|
+
*/
|
|
17
|
+
export type ActionPlacement = "end" | "below";
|
|
18
|
+
/**
|
|
19
|
+
* Lays out an action row as a grid of its text block and its control: one column with the
|
|
20
|
+
* control under the text at its start, and for `"end"` on a container at least 32rem wide,
|
|
21
|
+
* the text taking the flexible width and the control its own at the end.
|
|
22
|
+
*
|
|
23
|
+
* @param containerName The container query name the row measures.
|
|
24
|
+
* @param placement Where the control sits on a wide container.
|
|
25
|
+
* @param gap The grid's row and column gap.
|
|
26
|
+
* @returns A mixin for the row's grid element.
|
|
27
|
+
* @example
|
|
28
|
+
* <div mix={[actionRowGrid("ui-settings-card", "end", "0.5rem 1.5rem")]}>{text}{control}</div>
|
|
29
|
+
*/
|
|
30
|
+
export declare function actionRowGrid<Node extends Element = Element>(containerName: string, placement: ActionPlacement, gap: string): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Centres an end-placed control on the title's first line: on a wide container the
|
|
33
|
+
* control's box is one small-text line tall and the button overflows it evenly into the
|
|
34
|
+
* row's padding. Below 32rem the box wraps the control as stacked content.
|
|
35
|
+
*
|
|
36
|
+
* @param containerName The container query name the row measures.
|
|
37
|
+
* @returns The mixins for the element wrapping the row's control.
|
|
38
|
+
* @example
|
|
39
|
+
* <div mix={[onTitleLine("ui-settings-card")]}><Button>Open billing portal</Button></div>
|
|
40
|
+
*/
|
|
41
|
+
export declare function onTitleLine(containerName: string): UtilityMixin[];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The placement every settings-style action row shares: a button that acts at once sits at
|
|
3
|
+
* the row's end centred on the title's first line, or under the text at its start, and a
|
|
4
|
+
* narrow container always stacks it under the text.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import { raw } from "@sdxc/u/general";
|
|
10
|
+
import { text } from "@sdxc/u/typography";
|
|
11
|
+
/** Container width from which an end-placed action leaves the stack for the row's end. */
|
|
12
|
+
const ACTION_ROW_MIN = "32rem";
|
|
13
|
+
/**
|
|
14
|
+
* Lays out an action row as a grid of its text block and its control: one column with the
|
|
15
|
+
* control under the text at its start, and for `"end"` on a container at least 32rem wide,
|
|
16
|
+
* the text taking the flexible width and the control its own at the end.
|
|
17
|
+
*
|
|
18
|
+
* @param containerName The container query name the row measures.
|
|
19
|
+
* @param placement Where the control sits on a wide container.
|
|
20
|
+
* @param gap The grid's row and column gap.
|
|
21
|
+
* @returns A mixin for the row's grid element.
|
|
22
|
+
* @example
|
|
23
|
+
* <div mix={[actionRowGrid("ui-settings-card", "end", "0.5rem 1.5rem")]}>{text}{control}</div>
|
|
24
|
+
*/
|
|
25
|
+
export function actionRowGrid(containerName, placement, gap) {
|
|
26
|
+
return raw({
|
|
27
|
+
display: "grid",
|
|
28
|
+
gap,
|
|
29
|
+
alignItems: "start",
|
|
30
|
+
justifyItems: "start",
|
|
31
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
32
|
+
...(placement === "end"
|
|
33
|
+
? {
|
|
34
|
+
[`@container ${containerName} (min-width: ${ACTION_ROW_MIN})`]: {
|
|
35
|
+
gridTemplateColumns: "minmax(0, 1fr) auto",
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
: {}),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Centres an end-placed control on the title's first line: on a wide container the
|
|
43
|
+
* control's box is one small-text line tall and the button overflows it evenly into the
|
|
44
|
+
* row's padding. Below 32rem the box wraps the control as stacked content.
|
|
45
|
+
*
|
|
46
|
+
* @param containerName The container query name the row measures.
|
|
47
|
+
* @returns The mixins for the element wrapping the row's control.
|
|
48
|
+
* @example
|
|
49
|
+
* <div mix={[onTitleLine("ui-settings-card")]}><Button>Open billing portal</Button></div>
|
|
50
|
+
*/
|
|
51
|
+
export function onTitleLine(containerName) {
|
|
52
|
+
let styles = {};
|
|
53
|
+
styles[`@container ${containerName} (min-width: ${ACTION_ROW_MIN})`] = {
|
|
54
|
+
display: "flex",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
blockSize: "1lh",
|
|
57
|
+
};
|
|
58
|
+
return [text("sm"), raw(styles)];
|
|
59
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
11
|
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
|
-
import type { CSSStyles } from "
|
|
12
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
13
13
|
/**
|
|
14
14
|
* Number of categorical color slots a chart's `--ui-chart-*` palette spans.
|
|
15
15
|
* A series, wedge, or bar whose position in its own list outgrows this
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
10
|
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
11
|
-
import type { CSSStyles } from "
|
|
11
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
12
12
|
/**
|
|
13
13
|
* A shrink-resistant, nudged-down, current-colored mixin for a leading
|
|
14
14
|
* graphic slot, keeping an icon and a loading graphic laid out identically.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
9
|
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
|
-
import type { CSSStyles } from "
|
|
10
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
11
11
|
/**
|
|
12
12
|
* Composes the categorical legend-toggle visibility rules as a `css()`
|
|
13
13
|
* mixin covering every {@link CHART_COLOR_SLOT_COUNT} color slot. The
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a stat's delta sits as the group around it changes layout, shared by the delta and
|
|
3
|
+
* every placeholder standing in for it, so a loading card moves its delta by the same
|
|
4
|
+
* container queries the resolved card does and keeps the card's height.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
11
|
+
/** Container a stat group measures, so its columns follow the pane it sits in. */
|
|
12
|
+
export declare const STAT_GROUP_CONTAINER = "ui-stat-group";
|
|
13
|
+
/**
|
|
14
|
+
* A group from 18rem up to 28rem wide: two columns of compact cards, so a phone shows four
|
|
15
|
+
* stats in two rows. Narrower than 18rem, a group keeps one column of full-size cards.
|
|
16
|
+
*/
|
|
17
|
+
export declare const STAT_COMPACT = "@container ui-stat-group (min-width: 18rem) and (max-width: 27.9375rem)";
|
|
18
|
+
/**
|
|
19
|
+
* Places the delta at the end of the label's line in a card, and on its own line under the
|
|
20
|
+
* value in ruled columns, tabs and compact cards, where its comparison wraps under the pill
|
|
21
|
+
* before it overflows.
|
|
22
|
+
*
|
|
23
|
+
* @returns A mixin for the delta's host element.
|
|
24
|
+
* @example
|
|
25
|
+
* <span mix={[statDeltaPlacement()]}>{pill}{comparison}</span>
|
|
26
|
+
*/
|
|
27
|
+
export declare function statDeltaPlacement<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
28
|
+
styles: CSSStyles
|
|
29
|
+
], ElementProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { raw } from "@sdxc/u/general";
|
|
2
|
+
/** Container a stat group measures, so its columns follow the pane it sits in. */
|
|
3
|
+
export const STAT_GROUP_CONTAINER = "ui-stat-group";
|
|
4
|
+
/**
|
|
5
|
+
* A group from 18rem up to 28rem wide: two columns of compact cards, so a phone shows four
|
|
6
|
+
* stats in two rows. Narrower than 18rem, a group keeps one column of full-size cards.
|
|
7
|
+
*/
|
|
8
|
+
export const STAT_COMPACT = `@container ${STAT_GROUP_CONTAINER} (min-width: 18rem) and (max-width: 27.9375rem)`;
|
|
9
|
+
/**
|
|
10
|
+
* Places the delta at the end of the label's line in a card, and on its own line under the
|
|
11
|
+
* value in ruled columns, tabs and compact cards, where its comparison wraps under the pill
|
|
12
|
+
* before it overflows.
|
|
13
|
+
*
|
|
14
|
+
* @returns A mixin for the delta's host element.
|
|
15
|
+
* @example
|
|
16
|
+
* <span mix={[statDeltaPlacement()]}>{pill}{comparison}</span>
|
|
17
|
+
*/
|
|
18
|
+
export function statDeltaPlacement() {
|
|
19
|
+
return raw({
|
|
20
|
+
order: 1,
|
|
21
|
+
justifySelf: "end",
|
|
22
|
+
'[data-stat-group="ruled"] > * > &, [data-stat-group="tabs"] > * > &': {
|
|
23
|
+
order: 3,
|
|
24
|
+
gridColumn: "1 / -1",
|
|
25
|
+
justifySelf: "start",
|
|
26
|
+
},
|
|
27
|
+
[STAT_COMPACT]: {
|
|
28
|
+
"[data-stat-split] > * > &": {
|
|
29
|
+
order: 3,
|
|
30
|
+
gridColumn: "1 / -1",
|
|
31
|
+
justifySelf: "start",
|
|
32
|
+
flexWrap: "wrap",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peek stack a toast region draws: older toasts fold behind the newest,
|
|
3
|
+
* scaled to 0.95 and 0.9 and nudged out by `--ui-toast-peek`, then fan out
|
|
4
|
+
* into a list while the pointer or focus rests on the region.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
10
|
+
import type { CSSStyles } from "../../utils/css-styles.js";
|
|
11
|
+
/**
|
|
12
|
+
* Styles a toast region's children as a capped peek stack. The newest toast
|
|
13
|
+
* is the last child; children past `max` from the end take no space, and
|
|
14
|
+
* folded toasts match the front one's height through `--ui-toast-front-size`.
|
|
15
|
+
*
|
|
16
|
+
* @param max Most toasts shown at once.
|
|
17
|
+
* @returns A mixin ready for the region element's `mix` prop.
|
|
18
|
+
* @example
|
|
19
|
+
* <div data-stack="peek" data-placement="bottom-end" mix={[toastStackStyle(3)]}>{toasts}</div>
|
|
20
|
+
*/
|
|
21
|
+
export declare function toastStackStyle<Node extends Element = Element>(max: number): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { combine, raw } from "@sdxc/u/general";
|
|
2
|
+
import { media } from "@sdxc/u/responsive";
|
|
3
|
+
import { when } from "@sdxc/u/state";
|
|
4
|
+
/** Selector for a peek region at rest; hover or focus inside fans it out. */
|
|
5
|
+
const COLLAPSED = '&[data-stack="peek"]:not(:hover, :focus-within)';
|
|
6
|
+
/** Distance each folded toast peeks past the one in front of it. */
|
|
7
|
+
const PEEK = "var(--ui-toast-peek, 0.625rem)";
|
|
8
|
+
/**
|
|
9
|
+
* Styles a toast region's children as a capped peek stack. The newest toast
|
|
10
|
+
* is the last child; children past `max` from the end take no space, and
|
|
11
|
+
* folded toasts match the front one's height through `--ui-toast-front-size`.
|
|
12
|
+
*
|
|
13
|
+
* @param max Most toasts shown at once.
|
|
14
|
+
* @returns A mixin ready for the region element's `mix` prop.
|
|
15
|
+
* @example
|
|
16
|
+
* <div data-stack="peek" data-placement="bottom-end" mix={[toastStackStyle(3)]}>{toasts}</div>
|
|
17
|
+
*/
|
|
18
|
+
export function toastStackStyle(max) {
|
|
19
|
+
let cap = Math.max(1, Math.floor(max));
|
|
20
|
+
let folded = `${COLLAPSED} > :not(:last-child)`;
|
|
21
|
+
return combine([
|
|
22
|
+
raw({
|
|
23
|
+
"--ui-toast-peek-direction": "-1",
|
|
24
|
+
"--ui-toast-peek-origin": "center top",
|
|
25
|
+
}),
|
|
26
|
+
when('&[data-placement^="top"]', raw({
|
|
27
|
+
"--ui-toast-peek-direction": "1",
|
|
28
|
+
"--ui-toast-peek-origin": "center bottom",
|
|
29
|
+
flexDirection: "column-reverse",
|
|
30
|
+
})),
|
|
31
|
+
when("&:hover, &:focus-within", raw({ pointerEvents: "auto" })),
|
|
32
|
+
when(`& > :nth-last-child(n + ${cap + 1})`, raw({ display: "none" })),
|
|
33
|
+
when(COLLAPSED, raw({ display: "grid" })),
|
|
34
|
+
when(`${COLLAPSED} > *`, raw({ gridArea: "1 / 1", alignSelf: "end" })),
|
|
35
|
+
when(`${COLLAPSED}[data-placement^="top"] > *`, raw({ alignSelf: "start" })),
|
|
36
|
+
when(folded, raw({
|
|
37
|
+
blockSize: "var(--ui-toast-front-size, auto)",
|
|
38
|
+
overflow: "hidden",
|
|
39
|
+
transformOrigin: "var(--ui-toast-peek-origin)",
|
|
40
|
+
})),
|
|
41
|
+
when(`${folded} > [data-slot="toast"]`, raw({ blockSize: "100%" })),
|
|
42
|
+
when(`${folded}[data-slot="toast"] > *, ${folded} [data-slot="toast"] > *`, raw({ opacity: "0" })),
|
|
43
|
+
when(`${COLLAPSED} > :nth-last-child(2)`, raw({
|
|
44
|
+
transform: `translateY(calc(${PEEK} * var(--ui-toast-peek-direction))) scale(0.95)`,
|
|
45
|
+
})),
|
|
46
|
+
when(`${COLLAPSED} > :nth-last-child(n + 3)`, raw({
|
|
47
|
+
transform: `translateY(calc(${PEEK} * 2 * var(--ui-toast-peek-direction))) scale(0.9)`,
|
|
48
|
+
})),
|
|
49
|
+
media("(prefers-reduced-motion: no-preference)", combine([
|
|
50
|
+
when("& > *", raw({ transition: "transform 200ms ease-out" })),
|
|
51
|
+
when('& [data-slot="toast"] > *', raw({ transition: "opacity 200ms ease-out" })),
|
|
52
|
+
])),
|
|
53
|
+
]);
|
|
54
|
+
}
|