@sdxc/ui 2026.10.29 → 2026.11.1
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/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/{behaviors → app/behaviors}/toaster.js +1 -1
- package/dist/{components → app}/chart.d.ts +1 -1
- package/dist/{components → app}/chart.js +18 -34
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.js +3 -3
- package/dist/{components → app}/empty.d.ts +1 -1
- package/dist/{components → app}/empty.js +11 -21
- package/dist/{components → app}/file-trigger.js +2 -2
- 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 +41 -0
- package/dist/app/index.js +41 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/{components → app}/skeleton.js +3 -3
- 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/{components → app}/table.js +12 -15
- package/dist/{components → app}/toast.js +18 -24
- 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/{utils → app/utils}/chart-path.d.ts +1 -1
- package/dist/{utils → app/utils}/chart-path.js +2 -2
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- 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/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/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.js +3 -3
- 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 +6 -38
- package/dist/components/index.js +6 -38
- package/dist/components/input.js +3 -4
- 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 +16 -11
- 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/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- 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/switch.js +3 -3
- package/dist/components/tabs.js +9 -12
- package/dist/components/tag-group.js +7 -9
- package/dist/components/text-field.js +2 -1
- 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/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.js +128 -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 +55 -0
- package/dist/docs/docs-feedback.js +72 -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 +53 -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 +46 -0
- package/dist/docs/docs-pager.js +74 -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 +97 -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 +79 -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 +7 -5
- package/dist/{patterns → landing}/faq-band.js +11 -12
- 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/landing/landing-section.d.ts +110 -0
- 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 +14 -4
- package/dist/{components → landing}/split.js +30 -21
- 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 -4
- 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/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 +2 -15
- package/dist/mixins/index.js +2 -15
- package/dist/styles/index.d.ts +2 -5
- package/dist/styles/index.js +2 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +1 -5
- package/dist/utils/index.js +1 -5
- package/package.json +14 -4
- package/src/theme.css +87 -22
- package/dist/components/feature.d.ts +0 -102
- package/dist/components/feature.js +0 -151
- 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.d.ts +0 -81
- package/dist/components/marketing-section.js +0 -103
- package/dist/components/stat-strip.js +0 -64
- 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 -67
- package/dist/patterns/bento.js +0 -95
- 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 -45
- package/dist/patterns/step-list.js +0 -84
- 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/{behaviors → app/behaviors}/toaster.d.ts +0 -0
- /package/dist/{components → app}/drop-indicator.d.ts +0 -0
- /package/dist/{components → app}/drop-zone.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/{components → app}/skeleton.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}/table.d.ts +0 -0
- /package/dist/{components → app}/toast.d.ts +0 -0
- /package/dist/{components → app}/toolbar.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-marker-indices.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-marker-indices.js +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
package/README.md
CHANGED
|
@@ -118,18 +118,26 @@ A page that sticks to baseline behavior ships no library JavaScript at all.
|
|
|
118
118
|
|
|
119
119
|
## API
|
|
120
120
|
|
|
121
|
-
| Import
|
|
122
|
-
|
|
|
123
|
-
| `@sdxc/ui`
|
|
124
|
-
| `@sdxc/ui/<name>`
|
|
125
|
-
| `@sdxc/ui/
|
|
126
|
-
| `@sdxc/ui/
|
|
127
|
-
| `@sdxc/ui/
|
|
128
|
-
| `@sdxc/ui/
|
|
129
|
-
| `@sdxc/ui/
|
|
130
|
-
| `@sdxc/ui
|
|
131
|
-
| `@sdxc/ui/
|
|
132
|
-
|
|
121
|
+
| Import | Contains |
|
|
122
|
+
| ---------------------- | ------------------------------------------------------------------- |
|
|
123
|
+
| `@sdxc/ui` | The general components, usable on any page, and their parts. |
|
|
124
|
+
| `@sdxc/ui/<name>` | One general component, by its file name: `@sdxc/ui/youtube-embed`. |
|
|
125
|
+
| `@sdxc/ui/landing` | Landing bands, composition craft and animated visuals. |
|
|
126
|
+
| `@sdxc/ui/docs` | The docs shell, navigation and content blocks. |
|
|
127
|
+
| `@sdxc/ui/chat` | The message log, turns, bubbles, markers and attachments. |
|
|
128
|
+
| `@sdxc/ui/color` | Colour fields, pickers, sliders, swatches, area and wheel. |
|
|
129
|
+
| `@sdxc/ui/app` | Dashboard and workspace components: charts, tables, lists, toasts. |
|
|
130
|
+
| `@sdxc/ui/<ns>/<name>` | One namespace component, by its file name: `@sdxc/ui/docs/steps`. |
|
|
131
|
+
| `@sdxc/ui/mixins` | Opt-in DOM behaviors applied through `mix`. |
|
|
132
|
+
| `@sdxc/ui/behaviors` | Headless state classes built on `TypedEventTarget`. |
|
|
133
|
+
| `@sdxc/ui/animations` | CSS-only motion factories and the `durations`/`easings` tokens. |
|
|
134
|
+
| `@sdxc/ui/styles` | Style recipes composed inside a `mix` array. |
|
|
135
|
+
| `@sdxc/ui/utils` | Framework-free color, chart, geometry, key and DOM helpers; types. |
|
|
136
|
+
| `@sdxc/ui/reset.css` | The base reset in `@layer base`. |
|
|
137
|
+
| `@sdxc/ui/theme.css` | The `--ui-*` semantic variables and the `--ui-chart-1`…`8` palette. |
|
|
138
|
+
|
|
139
|
+
A namespace builds on the general components and never on another namespace, and exports the
|
|
140
|
+
mixins, behaviors and styles only its components use; the shared helper subpaths hold the rest.
|
|
133
141
|
Every export carries JSDoc, so the editor shows each full signature.
|
|
134
142
|
|
|
135
143
|
### Component contract
|
|
@@ -166,113 +174,206 @@ Every export carries JSDoc, so the editor shows each full signature.
|
|
|
166
174
|
and `<progress>` (indeterminate when `value` is unset).
|
|
167
175
|
- `Select`, `ComboBox`, `SearchField` — a native `<select>` with customizable-select styling, a
|
|
168
176
|
text input with a `<datalist>`, and a `<search>` landmark.
|
|
169
|
-
- `FileTrigger`, `DropZone` — a button opening the file picker, and a drop target, both over a
|
|
170
|
-
native file input.
|
|
171
177
|
|
|
172
178
|
### Components: overlays and menus
|
|
173
179
|
|
|
174
180
|
- `Dialog`, `AlertDialog` — modals on `<dialog>`; the alert variant ignores light dismiss.
|
|
175
181
|
- `Modal`, `Drawer`, `Sheet` — `Dialog` presets: pop-in, edge-docked, and a fixed side column.
|
|
182
|
+
- `DialogDismiss` — island closing its dialog on a backdrop press or a followed link; load `@sdxc/ui/dialog-dismiss` in the browser entry.
|
|
176
183
|
- `Confirm` — a complete confirmation dialog; with `form` its confirm button submits a real form.
|
|
177
184
|
- `Popover`, `Tooltip`, `HoverCard` — an anchored popover, a label shown on hover or focus of the
|
|
178
185
|
preceding sibling, and a detail panel shown on hover or focus within.
|
|
179
|
-
- `Menu`, `
|
|
180
|
-
pointer-positioned menu, and a row of navigation panels.
|
|
186
|
+
- `Menu`, `NavigationMenu` — popover menus, and a row of navigation panels.
|
|
181
187
|
- `Command` — a searchable list of actions with `.Input`, `.List`, `.Item` and `.Empty`.
|
|
182
188
|
- `OverlayArrow` — a pointer from a floating surface back to its trigger.
|
|
183
189
|
|
|
184
|
-
### Components: navigation and
|
|
190
|
+
### Components: navigation and lists
|
|
185
191
|
|
|
186
192
|
- `Button` — `color`, `variant`, `size`, and `isPending` to show a spinner at the same size.
|
|
193
|
+
- `CtaGroup` — a wrapping row of actions; its `size` reaches every `Button` and `LinkButton` in it,
|
|
194
|
+
and `stack="phone"` stacks them on a phone.
|
|
187
195
|
- `Link`, `NavLink`, `LinkButton` — an inline anchor, a navigation link, and a link styled as a
|
|
188
196
|
button.
|
|
189
197
|
- `Tabs` — tabs driven by routing: the `.Tab` pointing at the current page is selected.
|
|
190
198
|
- `Breadcrumbs`, `Pagination`, `Sidebar` — a trail of parents, a pager landmark, and an app shell
|
|
191
199
|
rail whose collapse rides a checkbox's `:checked`.
|
|
192
200
|
- `Disclosure`, `Accordion` — `<details>` sections, alone or stacked.
|
|
193
|
-
- `
|
|
194
|
-
- `
|
|
195
|
-
|
|
196
|
-
and a muted row holding a loading or "load more" control.
|
|
201
|
+
- `ListBox` — selectable rows sharing one native grouping name.
|
|
202
|
+
- `SelectionIndicator`, `SentinelRow` — a selection marker, and a muted row holding a loading or
|
|
203
|
+
"load more" control.
|
|
197
204
|
|
|
198
205
|
### Components: feedback
|
|
199
206
|
|
|
200
|
-
- `Alert
|
|
207
|
+
- `Alert` — an inline status panel.
|
|
201
208
|
- `Badge`, `TagGroup` — a status pill, and a labeled set of removable pills.
|
|
202
|
-
- `
|
|
203
|
-
|
|
204
|
-
### Components: color
|
|
205
|
-
|
|
206
|
-
- `ColorSwatch`, `ColorSwatchPicker` — a color preview, and preset colors as native radios.
|
|
207
|
-
- `ColorArea`, `ColorWheel`, `ColorSlider` — saturation/brightness, hue, and single-channel pickers
|
|
208
|
-
built from range inputs.
|
|
209
|
-
- `ColorField`, `ColorPicker` — a color text field with a live swatch, and that field with a
|
|
210
|
-
popover (`ColorPicker.Dialog`) hosting any of the pickers above.
|
|
211
|
-
|
|
212
|
-
### Components: charts and conversation
|
|
213
|
-
|
|
214
|
-
- `Chart` — an SVG coordinate space (`width`, `height`, `xDomain`, `yDomain`) for `.Line` and
|
|
215
|
-
`.Area` series, plus standalone `.Bar` and `.Pie`, a `.Legend`, and the `.Tooltip` surface that
|
|
216
|
-
`chartTooltip()` drives; every point is a labeled, focusable marker.
|
|
217
|
-
- `MessageScroller` — a `role="log"` frame with `.Viewport`, `.Content`, `.Item` and a
|
|
218
|
-
jump-to-latest `.Button`.
|
|
219
|
-
- `Message`, `Bubble`, `Marker`, `Attachment` — a turn, its framed content, an inline event between
|
|
220
|
-
turns, and an attached-file card.
|
|
209
|
+
- `Spinner` — a busy indicator.
|
|
221
210
|
|
|
222
211
|
### Components: layout and content
|
|
223
212
|
|
|
224
|
-
- `Card`, `Item`, `Group`, `Section`, `Separator
|
|
225
|
-
|
|
213
|
+
- `Card`, `Item`, `Group`, `Section`, `Separator` — panels, rows, groupings and dividers. Prefer
|
|
214
|
+
`Feature` from `@sdxc/ui/landing` over `Card` for landing claim cells.
|
|
226
215
|
- `ImagePlaceholder`, `Avatar`, `Logo` — an image with fallback, and its round and rounded-square
|
|
227
216
|
presets.
|
|
228
|
-
- `AspectRatio`, `
|
|
229
|
-
|
|
217
|
+
- `AspectRatio`, `ScrollArea`, `Carousel` — a ratio lock, a scroll region, and a scroll-snap slide
|
|
218
|
+
set.
|
|
230
219
|
- `YouTubeEmbed` — a lazy-loaded 16:9 YouTube player (`videoId`, `start?`, `title`) served from
|
|
231
220
|
`www.youtube-nocookie.com`, which the page's `frame-src` has to allow.
|
|
232
221
|
- `Text`, `Header`, `Keyboard`, `Typeset` — muted copy, a section label, a `<kbd>`, and typography
|
|
233
222
|
for rendered markup. `Typeset` sets the body at 18px (`docs`), 20px (`reading`) or 15px (`chat`).
|
|
234
|
-
- `ShortcutList` — a `<dl>` pairing actions with key caps.
|
|
235
223
|
- `Highlight` — `{ text, match }` segments rendered with each match in a `<mark>`.
|
|
236
224
|
- `HeadingScope`, `Heading` — a heading-depth scope, and the `<h1>`–`<h6>` that reads it.
|
|
237
|
-
`Heading` accepts `size="display" | "chapter"` for
|
|
225
|
+
`Heading` accepts `size="display" | "chapter"` for landing type recipes.
|
|
238
226
|
- `SharedElement` — a host with a stable view-transition name across page loads.
|
|
239
227
|
- `Calendar`, `RangeCalendar`, `DatePicker`, `DateRangePicker` — month grids for a day or a range,
|
|
240
228
|
and popover pickers around them; `Calendar` without children renders `<input type="date">`.
|
|
241
229
|
|
|
242
|
-
###
|
|
230
|
+
### Landing (`@sdxc/ui/landing`)
|
|
243
231
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
- `CtaGroup` — wrapping primary/secondary actions; pair nav `sm` (~32px) with hero `lg` (~48px).
|
|
247
|
-
- `Split`, `Split.Copy`, `Split.Media` — two-column band content (`lean`, optional `checks`).
|
|
248
|
-
- `StatStrip`, `StatStrip.Item` — numeric proof strip (`ruled` | `gap`).
|
|
249
|
-
- `LogoCloud` — muted adopter marks at `--ui-marketing-logo-height`.
|
|
250
|
-
- `Feature`, `Feature.Grid` — claim cells and a hairline-ruled grid (`variant="panel"` optional).
|
|
232
|
+
Landing bands, composition craft and animated visuals. Every piece imports from
|
|
233
|
+
`@sdxc/ui/landing`, or on its own as `@sdxc/ui/landing/<name>`.
|
|
251
234
|
|
|
252
|
-
|
|
235
|
+
**Bands and primitives**
|
|
253
236
|
|
|
254
|
-
|
|
255
|
-
|
|
237
|
+
- `LandingSection` — landing band (`tone` incl. `brand` | `gradient`, `spacing`, `align`, `ruled`, `inset`, `variant="frame"`).
|
|
238
|
+
- `LandingHeader` — eyebrow + chapter title + lead (`eyebrowVariant`: `mono` | `quiet` | `soft` | `pill` | `numbered`).
|
|
239
|
+
- `Split`, `Split.Copy`, `Split.Media` — two-column band content (`lean`, optional `checks`).
|
|
240
|
+
- `StatStrip`, `StatStrip.Item` — numeric proof strip (`ruled` | `gap`).
|
|
241
|
+
- `LogoCloud` — adopter marks at `--ui-landing-logo-height` (`layout`: `row` | `spread` | `grid`, `label`, `muted`).
|
|
242
|
+
- `Feature`, `Feature.Grid` — claim cells in a grid of cards or a hairline mosaic (`variant`).
|
|
256
243
|
|
|
257
244
|
**Building blocks**
|
|
258
245
|
|
|
259
|
-
- `LandingHero` — eyebrow, display title, lead, `CtaGroup`, media (`mediaPlacement`: `
|
|
246
|
+
- `LandingHero` — eyebrow, display title, lead, `CtaGroup`, `note`, `proof`, media (`mediaPlacement`: `below` | `end` | `background`).
|
|
260
247
|
- `ProofStrip` — compact ruled band for `LogoCloud` and/or `StatStrip` children.
|
|
261
|
-
- `FeatureBand` — header + `layout`: `split` | `grid` | `steps`.
|
|
248
|
+
- `FeatureBand` — header + `layout`: `split` | `grid` | `steps` | `stage` | `timeline`.
|
|
249
|
+
- `PricingBand`, `PricingBand.Plan` — plan cards; a `featured` plan inverts and leads on phones.
|
|
250
|
+
- `TestimonialBand`, `TestimonialBand.Quote` — quote cards in masonry columns.
|
|
262
251
|
- `FaqBand` — header + one or two `Accordion` columns (`columns={1|2}`).
|
|
263
252
|
- `ClosingCta` — inverse/tinted close with title, lead, and actions.
|
|
253
|
+
- `FlowDiagram` — animated run: a `trigger`, `steps` passing along a rail, an `outcome` and `footnote`.
|
|
254
|
+
- `SequenceDiagram` — animated exchange: `actors` on lifelines and `messages` travelling between them in order.
|
|
255
|
+
- `FanOutDiagram` — animated one-to-many: a `source` reaching every one of its `targets` (`direction="in"` for many-to-one).
|
|
256
|
+
- `EventTicker` — animated activity log: `rows` arriving newest first, a status that can flip with `flipTo`.
|
|
257
|
+
- `TypedTerminal` — animated terminal: input `lines` typing themselves out, then their output.
|
|
258
|
+
- `DrawnChart` — animated figure: a `metric` counting up over a `bars` or `line` `series` that draws in.
|
|
264
259
|
|
|
265
260
|
**Composition craft**
|
|
266
261
|
|
|
267
|
-
- `ProductFrame` — window/device chrome (`lights`, `title`, `url`).
|
|
268
|
-
- `CodeStage` / `TerminalPanel` — titled mono panel
|
|
262
|
+
- `ProductFrame` — window/device chrome (`stage`, `shadow`, `lights`, `title`, `url`, `footer`), and `designWidth` + `fit` to crop or scale a desktop composition on phones.
|
|
263
|
+
- `CodeStage` / `TerminalPanel` — titled mono panel (`variant`: `code` | `terminal` | `slab`, `language`, `lineNumbers`, `tabs`).
|
|
269
264
|
- `InstallTabs`, `InstallTabs.Option` — radio dialect strip (no JS).
|
|
270
|
-
- `TabbedStage`, `TabbedStage.Item` —
|
|
265
|
+
- `TabbedStage`, `TabbedStage.Item` — tabs or a vertical rail controlling a media panel (no JS).
|
|
271
266
|
- `CheckList`, `CheckRow` — checked claims (`orientation`: `stacked` | `horizontal`).
|
|
272
|
-
- `IconWell` —
|
|
273
|
-
- `Bento`, `Bento.Cell` — hairline
|
|
274
|
-
- `StepList`, `StepList.Item` — numbered
|
|
275
|
-
- `AnnouncementChip`, `AccentText` —
|
|
267
|
+
- `IconWell` — landing glyph tile (`tone`: `quiet` | `brand`; `sm` | `md` | `lg`).
|
|
268
|
+
- `Bento`, `Bento.Cell`, `Bento.Media` — cards or a hairline mosaic in equal columns.
|
|
269
|
+
- `StepList`, `StepList.Item` — numbered steps or a `timeline`.
|
|
270
|
+
- `AnnouncementChip`, `AccentText` — announcement label; marked phrase inside a headline (`color` | `swash` | `highlight`).
|
|
271
|
+
|
|
272
|
+
### Docs (`@sdxc/ui/docs`)
|
|
273
|
+
|
|
274
|
+
The docs shell, navigation and content blocks. Islands load as `@sdxc/ui/docs/<name>`; map each
|
|
275
|
+
one the page uses in the browser entry.
|
|
276
|
+
|
|
277
|
+
- `DocsLayout` — docs shell: docked `sidebar` (drawer below `dock`), article `measure`, heading rail from 75rem, sticky bar with menu and `toc`.
|
|
278
|
+
- `DocsHub` — docs home routing by task: `search`, `topics` chips, larger `start` cards, `sections` with counts, `popular`.
|
|
279
|
+
- `DocsNotFound` — docs 404 body: the missing `path`, a `search` pre-filled by `searchQueryFromPath(path)`, start `links`.
|
|
280
|
+
- `Callout` — static docs aside (`kind`: `note` | `tip` | `warning` | `danger`, translated `label`, optional `title`).
|
|
281
|
+
- `Steps`, `Steps.Item` — numbered procedure with CSS counters and a rail; each `title` is a heading with an optional `id`.
|
|
282
|
+
- `FileTree` — project layout from `nodes`: `<details>` directories, per-type file icons, `highlight` pill, `comment`, `"…"`.
|
|
283
|
+
- `UiLabel`, `UiPath` — a product control's name as a sans chip, and a click path of chips joined by `→`.
|
|
284
|
+
- `PlanNotice` — the one-sentence plan or role box under a help page's title.
|
|
285
|
+
- `CodeBlock` — titled code card: file icon by extension or "Terminal", `highlight`/`add`/`remove` lines, `lineNumbers`, copy without prompts.
|
|
286
|
+
- `CodeTabs` — radio tabs over code; `syncKey` switches every set together and `persist` (`cookie` | `local`) remembers it.
|
|
287
|
+
- `InstallCommand` — `packages` (and `dev`) spelled for npm, pnpm, yarn and bun in `CodeTabs` synced on `package-manager`.
|
|
288
|
+
- `PropsTable` — name/type/default/required/description `rows`; `children` expand in place, rows stack below 36rem.
|
|
289
|
+
- `CopyButton`, `CodeTabsSync` — the islands the above hydrate (`@sdxc/ui/docs/copy-button`, `@sdxc/ui/docs/code-tabs-sync`).
|
|
290
|
+
- `DocsPageHeader` — breadcrumb, `<h1>`, lead, `notice`, and a meta row with `updated` (a `<time>`) and `actions`.
|
|
291
|
+
- `PageActions` — "Copy page" split button over a popover menu of `links`; the copy is the island `@sdxc/ui/docs/page-actions`.
|
|
292
|
+
- `AnchorHeading` — heading with an `id`, a `#` link on hover and focus, `--ui-docs-scroll-margin`, a `:target` flash.
|
|
293
|
+
- `NextSteps` — hand-written "Next steps" heading plus 2–4 links, as `cards` or a `list`.
|
|
294
|
+
- `DocsFeedback` — "Was this helpful?" form posting `helpful`, `page` and `note` without JavaScript; `state="sent"` thanks.
|
|
295
|
+
- `DocsPager` — previous/next whole-card links from `findNeighbours(tree, path, { boundary })`.
|
|
296
|
+
- `DocsNav` — docs sidebar from a `DocsTree`: current page marked and scrolled into view, `<details>` groups, optional title `filter`, `footer`; island `@sdxc/ui/docs/docs-nav-tools`.
|
|
297
|
+
- `TableOfContents` — "On this page" `rail` or sticky `bar`: a marker slides over every section on screen and reaches the last; island `@sdxc/ui/docs/table-of-contents`.
|
|
298
|
+
- `DocsTree`, `flattenDocsTree(tree)`, `findNeighbours(tree, path, { boundary: "section" | "none" })` —
|
|
299
|
+
the sidebar's data, walked in reading order by the pager.
|
|
300
|
+
|
|
301
|
+
| Helper | Host | Adds |
|
|
302
|
+
| ---------------------------- | ------------------------ | --------------------------------------------------------------------- |
|
|
303
|
+
| `tocSpy()` | a `TableOfContents` list | Sections on screen marked, the marker slid over them, the lead named. |
|
|
304
|
+
| `docsNavTools()` | an element in `DocsNav` | The current page scrolled into view; the title filter. |
|
|
305
|
+
| `codeTabsSync(key, persist)` | an element in `CodeTabs` | Every set sharing `key` switches together; the choice is remembered. |
|
|
306
|
+
| `copyFeedback(copiedLabel)` | a copy button | `data-copied` for 2s and the label announced after a copy. |
|
|
307
|
+
| `copyFromUrl(href, failed?)` | a copy button | Fetches `href` and copies its body; dispatches `ui:copy`. |
|
|
308
|
+
|
|
309
|
+
### Chat (`@sdxc/ui/chat`)
|
|
310
|
+
|
|
311
|
+
- `MessageScroller` — a `role="log"` frame with `.Viewport`, `.Content`, `.Item` and a
|
|
312
|
+
jump-to-latest `.Button`.
|
|
313
|
+
- `Message`, `Bubble`, `Marker`, `Attachment` — a turn, its framed content, an inline event between
|
|
314
|
+
turns, and an attached-file card.
|
|
315
|
+
- `ScrollFollowModel({ pinned? })` — whether the log follows the live edge, visible messages, and
|
|
316
|
+
pending scroll requests.
|
|
317
|
+
|
|
318
|
+
| Helper | Host | Adds |
|
|
319
|
+
| ---------------------- | -------------------------- | ------------------------------------------------ |
|
|
320
|
+
| `messageFollow(model)` | `MessageScroller.Viewport` | Follows new turns through a `ScrollFollowModel`. |
|
|
321
|
+
| `attachmentTrigger()` | `Attachment.Trigger` | The whole card as one activation target. |
|
|
322
|
+
|
|
323
|
+
### Color (`@sdxc/ui/color`)
|
|
324
|
+
|
|
325
|
+
- `ColorSwatch`, `ColorSwatchPicker` — a color preview, and preset colors as native radios.
|
|
326
|
+
- `ColorArea`, `ColorWheel`, `ColorSlider` — saturation/brightness, hue, and single-channel pickers
|
|
327
|
+
built from range inputs.
|
|
328
|
+
- `ColorField`, `ColorPicker` — a color text field with a live swatch, and that field with a
|
|
329
|
+
popover (`ColorPicker.Dialog`) hosting any of the pickers above.
|
|
330
|
+
- `rtlAwareGradientDirection(propertyName)` and `HUE_GRADIENT_STOPS` — the gradient direction and
|
|
331
|
+
hue stops the sliders and wheel paint.
|
|
332
|
+
|
|
333
|
+
| Helper | Host | Adds |
|
|
334
|
+
| ------------------ | ------------ | --------------------------------------------- |
|
|
335
|
+
| `colorAreaDrag()` | `ColorArea` | A 2D drag across the paired thumbs. |
|
|
336
|
+
| `colorPreview()` | `ColorField` | The swatch updated as the typed value parses. |
|
|
337
|
+
| `colorWheelDrag()` | `ColorWheel` | An angular drag around the ring. |
|
|
338
|
+
|
|
339
|
+
### App (`@sdxc/ui/app`)
|
|
340
|
+
|
|
341
|
+
Dashboard and workspace components.
|
|
342
|
+
|
|
343
|
+
- `Chart` — an SVG coordinate space (`width`, `height`, `xDomain`, `yDomain`) for `.Line` and
|
|
344
|
+
`.Area` series, plus standalone `.Bar` and `.Pie`, a `.Legend`, and the `.Tooltip` surface that
|
|
345
|
+
`chartTooltip()` drives; every point is a labeled, focusable marker. Its scales and paths are
|
|
346
|
+
`linearScale`, `bandScale`, `ticks`, `linePath`, `areaPath`, `arcPath`, `pieAngles` and
|
|
347
|
+
`computeMarkerIndices`; `chartPalette()` and `legendToggle()` style its series.
|
|
348
|
+
- `Table` — a table whose `.Column` takes a sort `href` and whose `.LoadMore` row is a link.
|
|
349
|
+
- `GridList`, `Tree` — an interactive row list, and nested `<details>`.
|
|
350
|
+
- `DropIndicator` — the bar marking where a dragged row will land.
|
|
351
|
+
- `Toast` — a notification stacked by `Toast.Region`, queued by a `Toaster`.
|
|
352
|
+
- `Skeleton`, `Empty` — a loading block, and an empty-state panel.
|
|
353
|
+
- `Toolbar`, `Menubar`, `ContextMenu` — a row of controls, a row of menu triggers, and a
|
|
354
|
+
pointer-positioned menu.
|
|
355
|
+
- `Resizable` — split panes.
|
|
356
|
+
- `ShortcutList` — a `<dl>` pairing actions with key caps.
|
|
357
|
+
- `FileTrigger`, `DropZone` — a button opening the file picker, and a drop target, both over a
|
|
358
|
+
native file input.
|
|
359
|
+
- `DragSession<Data>()` — the dragged `source`, the `target` under the pointer with its
|
|
360
|
+
`"before" | "after" | "on"` position, and `drop()`.
|
|
361
|
+
- `ResizeSession()` — panel sizes during a resize, cascading into neighbors at their limits.
|
|
362
|
+
- `SelectionModel({ mode?, keys?, selectedKeys? })` — `toggle`, `selectRange`, `selectAll` over a
|
|
363
|
+
key set.
|
|
364
|
+
- `Toaster<Data>({ defaultDuration? })` — `add(data, options?)`, `toasts`, `dismiss(id)`,
|
|
365
|
+
`pause`/`resume`, with each toast's timer owned by the queue.
|
|
366
|
+
|
|
367
|
+
| Helper | Host | Adds |
|
|
368
|
+
| ----------------------------- | --------------------- | ------------------------------------------------------------------ |
|
|
369
|
+
| `chartTooltip()` | a chart series | `Chart.Tooltip` filled from the nearest point to pointer or focus. |
|
|
370
|
+
| `contextMenu(id, options?)` | `ContextMenu.Trigger` | Opens popover `id` at the pointer on right-click or the menu key. |
|
|
371
|
+
| `dragReorder(session)` | `GridList` / `Tree` | Pointer reordering through a `DragSession`. |
|
|
372
|
+
| `dropZone(session)` | `DropZone` | File drag-and-drop through a `DragSession`. |
|
|
373
|
+
| `gridListKeys(model)` | `GridList` | The ARIA grid keyboard pattern over a `SelectionModel`. |
|
|
374
|
+
| `menubarKeys(options?)` | `Menubar` | The ARIA menubar pattern, handing off into each open `Menu`. |
|
|
375
|
+
| `resizeHandle(axis, session)` | `Resizable.Handle` | Pointer resizing through a `ResizeSession`. |
|
|
376
|
+
| `treeKeys(model)` | `Tree` | The ARIA tree pattern over a `SelectionModel`. |
|
|
276
377
|
|
|
277
378
|
### Component helpers
|
|
278
379
|
|
|
@@ -292,27 +393,19 @@ Each mixin module documents why it needs JavaScript and what still works without
|
|
|
292
393
|
| ------------------------------- | -------------------------- | ----------------------------------------------------------------------- |
|
|
293
394
|
| `activeDescendantKeys()` | a combobox input | Arrows over its `aria-controls` options; Enter follows the chosen link. |
|
|
294
395
|
| `ariaChecked()` | checkbox, switch or radio | `aria-checked` kept in step with the live control. |
|
|
295
|
-
| `attachmentTrigger()` | `Attachment.Trigger` | The whole card as one activation target. |
|
|
296
396
|
| `calendarKeys(model)` | `Calendar.Grid` | Arrow/Page/Home/End navigation over a `CalendarModel`. |
|
|
297
397
|
| `carouselControls()` | `Carousel.Viewport` | `--ui-prev`, `--ui-next` and `--ui-goto` commands. |
|
|
298
398
|
| `channelSync()` | a `ColorSlider` group | Sibling channel gradients that follow each other. |
|
|
299
|
-
| `chartTooltip()` | a chart series | `Chart.Tooltip` filled from the nearest point to pointer or focus. |
|
|
300
399
|
| `clearField()` | `SearchField` clear button | Empties its `commandfor` input. |
|
|
301
|
-
| `colorAreaDrag()` | `ColorArea` | A 2D drag across the paired thumbs. |
|
|
302
|
-
| `colorPreview()` | `ColorField` | The swatch updated as the typed value parses. |
|
|
303
|
-
| `colorWheelDrag()` | `ColorWheel` | An angular drag around the ring. |
|
|
304
400
|
| `comboboxFilter()` | `ComboBox.Input` | As-you-type narrowing. |
|
|
305
401
|
| `commandFilter(model)` | `Command` | Items hidden by a `FilterModel` query. |
|
|
306
402
|
| `commandKeys(model)` | `Command` | Arrow keys over matches; Enter activates the active item's link/button. |
|
|
307
|
-
| `
|
|
308
|
-
| `
|
|
403
|
+
| `copyToClipboard()` | a button | Copies the text of its `commandfor` target, minus `data-copy-exclude`. |
|
|
404
|
+
| `dialogDismiss()` | an element in a `<dialog>` | Closes the dialog on a backdrop press or a followed link. |
|
|
309
405
|
| `dismiss(options?)` | an alert or toast | Auto-dismiss countdown paused on hover, plus a `--ui-dismiss` command. |
|
|
310
|
-
| `dragReorder(session)` | `GridList` / `Tree` | Pointer reordering through a `DragSession`. |
|
|
311
|
-
| `dropZone(session)` | `DropZone` | File drag-and-drop through a `DragSession`. |
|
|
312
406
|
| `dualRange()` | a two-thumb `Slider` | Thumbs that cannot cross. |
|
|
313
407
|
| `frameRefresh(options)` | any host in a frame | Its frame reloaded on a schedule or an event, resting while hidden. |
|
|
314
408
|
| `frameSubmit(options?)` | a `<form>` in a frame | The form posted through its frame, answered in place in one request. |
|
|
315
|
-
| `gridListKeys(model)` | `GridList` | The ARIA grid keyboard pattern over a `SelectionModel`. |
|
|
316
409
|
| `headingLevelFallback(options)` | an island's `HeadingScope` | Reports the page's heading depth to `onLevel` once on attach. |
|
|
317
410
|
| `hotkey(combo)` | a `<dialog>`/`[popover]` | A document-wide shortcut toggling its host. |
|
|
318
411
|
| `imageFallback()` | an `Avatar`/`Logo` image | Shows the fallback when the image fails, cached images included. |
|
|
@@ -321,18 +414,14 @@ Each mixin module documents why it needs JavaScript and what still works without
|
|
|
321
414
|
| `listboxKeys()` | `ListBox` | Arrow, Home/End and typeahead navigation. |
|
|
322
415
|
| `longPress(options?)` | any element | Fires after a pointer holds still for `duration`. |
|
|
323
416
|
| `menuKeys(options?)` | `Menu` | The ARIA menu pattern: roving focus, arrows, typeahead. |
|
|
324
|
-
| `menubarKeys(options?)` | `Menubar` | The ARIA menubar pattern, handing off into each open `Menu`. |
|
|
325
|
-
| `messageFollow(model)` | `MessageScroller.Viewport` | Follows new turns through a `ScrollFollowModel`. |
|
|
326
417
|
| `mirrorSelectedOption()` | a `<selectedcontent>` | Keeps the customizable select's trigger showing the chosen option. |
|
|
327
418
|
| `otpSlots()` | an `OtpField` group | Focus moving across slots, and pasted codes split. |
|
|
328
419
|
| `persist(key)` | `Sidebar` | The collapsed state saved to a cookie, plus a `--ui-toggle` command. |
|
|
329
420
|
| `pressToggle()` | `ToggleButton` | Flips `aria-pressed` on click. |
|
|
330
421
|
| `rangePreview(model)` | `RangeCalendar.Grid` | Hover and focus preview of the pending range. |
|
|
331
|
-
| `resizeHandle(axis, session)` | `Resizable.Handle` | Pointer resizing through a `ResizeSession`. |
|
|
332
422
|
| `stepper(options?)` | `NumberField.Group` | Press-and-hold repeat on the step buttons. |
|
|
333
423
|
| `tabKeys(options?)` | `Tabs.List` | Arrow, Home/End tab activation. |
|
|
334
424
|
| `themeToggle(options?)` | any host | `--ui-theme-light`/`-dark`/`-system` commands saved to a cookie. |
|
|
335
|
-
| `treeKeys(model)` | `Tree` | The ARIA tree pattern over a `SelectionModel`. |
|
|
336
425
|
| `validate(schema)` | a form control | A `remix/data-schema` check through `setCustomValidity()`. |
|
|
337
426
|
| `viewTransition()` | a `SharedElement` island | A View Transition across a same-document reload. |
|
|
338
427
|
|
|
@@ -362,16 +451,7 @@ DOM-free state that dispatches `change`; an island subscribes and re-renders.
|
|
|
362
451
|
- `Announcer({ hold? })` — an `aria-live` queue: `announce(text, priority?)`, `current`, `next()`.
|
|
363
452
|
- `CalendarModel({ focusedDate?, min?, max?, isDateDisabled? })` — the focused day, visible month,
|
|
364
453
|
and an in-progress range (`beginRange`, `completeRange`).
|
|
365
|
-
- `DragSession<Data>()` — the dragged `source`, the `target` under the pointer with its
|
|
366
|
-
`"before" | "after" | "on"` position, and `drop()`.
|
|
367
454
|
- `FilterModel({ options?, query?, match? })` — query, `matches`, and the active match.
|
|
368
|
-
- `ResizeSession()` — panel sizes during a resize, cascading into neighbors at their limits.
|
|
369
|
-
- `ScrollFollowModel({ pinned? })` — whether the log follows the live edge, visible messages, and
|
|
370
|
-
pending scroll requests.
|
|
371
|
-
- `SelectionModel({ mode?, keys?, selectedKeys? })` — `toggle`, `selectRange`, `selectAll` over a
|
|
372
|
-
key set.
|
|
373
|
-
- `Toaster<Data>({ defaultDuration? })` — `add(data, options?)`, `toasts`, `dismiss(id)`,
|
|
374
|
-
`pause`/`resume`, with each toast's timer owned by the queue.
|
|
375
455
|
|
|
376
456
|
### Animations
|
|
377
457
|
|
|
@@ -391,24 +471,20 @@ opacity fade under reduced motion.
|
|
|
391
471
|
|
|
392
472
|
Recipes for a `mix` array: `floatingSurface()`, `surfaceInset()`, `hitArea()`, `panelChrome()`,
|
|
393
473
|
`semanticColorPanel()`, `interactiveTransition()`, `fieldStackLayout()`, `outputCaptionText()`,
|
|
394
|
-
`
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
`
|
|
400
|
-
|
|
401
|
-
`marketingLead()`, `marketingHairline()`, `logoCloudMark()`, `marketingCtaChrome()`. They read
|
|
402
|
-
the `--ui-marketing-*` tokens and optional `--ui-font-display` from `theme.css`. Apply
|
|
474
|
+
`rangeThumbAppearance(sizeVar, borderWidthVar)`.
|
|
475
|
+
|
|
476
|
+
Landing recipes (same entry), shared because general components use them too: `landingContainer()`,
|
|
477
|
+
`landingSectionSpace("hero" | "normal" | "compact")`,
|
|
478
|
+
`landingBandTone("plain" | "tinted" | "grid" | "inverse")`, `displayHeading(1 | 2 | 3)`,
|
|
479
|
+
`landingLead()`, `landingHairline()`, `logoCloudMark()`, `landingCtaChrome()`. They read
|
|
480
|
+
the `--ui-landing-*` tokens and optional `--ui-font-display` from `theme.css`. Apply
|
|
403
481
|
`viewReveal()` from `@sdxc/ui/animations` on band hosts for scroll entry; reduced-motion is
|
|
404
|
-
handled there — no separate
|
|
482
|
+
handled there — no separate landing animation system.
|
|
405
483
|
|
|
406
484
|
### Utilities
|
|
407
485
|
|
|
408
486
|
- **Color** — `parseColor(input): RGBAColor | null`, `formatHex`, `formatRgb`, `formatHsl`,
|
|
409
487
|
`rgbToHsl`, `hslToRgb`, `rgbToHsv`, `hsvToRgb`, `clampChannel`, `roundChannel`.
|
|
410
|
-
- **Charts** — `linearScale(domain, range)`, `bandScale(domain, range)`, `ticks(domain, count)`,
|
|
411
|
-
`linePath`, `areaPath`, `arcPath`, `pieAngles`, `computeMarkerIndices`, `HUE_GRADIENT_STOPS`.
|
|
412
488
|
- **Geometry** — `normalizedPointerPosition`, `angleFromCenter`, `angleToHue`, `hueToAngle`,
|
|
413
489
|
`resolveFillPercent`, `FULL_TURN_RADIANS`.
|
|
414
490
|
- **Keys** — `parseKeyCombo`, `matchesKeyCombo(event, combo)`, `keyComboGlyphs(combo, apple)`,
|
|
@@ -420,8 +496,6 @@ handled there — no separate marketing animation system.
|
|
|
420
496
|
`DISABLED_SELECTOR`, `DEFAULT_ICON_ARIA_HIDDEN`, `ONE_YEAR_SECONDS`.
|
|
421
497
|
- **Accessibility checks** — `warnIfNoAccessibleName(props, children, message)` and
|
|
422
498
|
`warnIfNoAccessibleLabel(props, message)`, development-only warnings.
|
|
423
|
-
- **Panels** — `semanticColorPanelStyle(color)`, the border, background and text declarations for
|
|
424
|
-
one semantic color.
|
|
425
499
|
|
|
426
500
|
### Types
|
|
427
501
|
|
|
@@ -508,8 +582,7 @@ import type { Handle } from "remix/component";
|
|
|
508
582
|
|
|
509
583
|
import { clientEntry } from "remix/component";
|
|
510
584
|
|
|
511
|
-
import { Toast } from "@sdxc/ui";
|
|
512
|
-
import { Toaster } from "@sdxc/ui/behaviors";
|
|
585
|
+
import { Toast, Toaster } from "@sdxc/ui/app";
|
|
513
586
|
import { whileLive } from "@sdxc/ui/mixins";
|
|
514
587
|
|
|
515
588
|
export let Toasts = clientEntry("/components/toasts.tsx#Toasts", function Toasts(handle: Handle) {
|
|
@@ -589,7 +662,8 @@ import type { Handle } from "remix/component";
|
|
|
589
662
|
|
|
590
663
|
import { clientEntry } from "remix/component";
|
|
591
664
|
|
|
592
|
-
import { Button, Modal
|
|
665
|
+
import { Button, Modal } from "@sdxc/ui";
|
|
666
|
+
import { ShortcutList } from "@sdxc/ui/app";
|
|
593
667
|
import { Announcer } from "@sdxc/ui/behaviors";
|
|
594
668
|
import { keymap, whileLive } from "@sdxc/ui/mixins";
|
|
595
669
|
import { keyComboGlyphs } from "@sdxc/ui/utils";
|
|
@@ -659,8 +733,10 @@ import { floatingSurface } from "@sdxc/ui/styles";
|
|
|
659
733
|
</div>;
|
|
660
734
|
```
|
|
661
735
|
|
|
662
|
-
|
|
663
|
-
|
|
736
|
+
A `@sdxc/u` utility in `mix` overrides the component's own utility for the same property:
|
|
737
|
+
`<Text mix={text("xs")}>` renders extra-small text. To change a declaration the component sets
|
|
738
|
+
another way, override its `--ui-*` variable (as above), use `style`, or write the rule in a cascade
|
|
739
|
+
layer declared after `rmx`. When `parts` is not enough,
|
|
664
740
|
compose the underlying pieces (`Label`, `Input`, `Description`, `FieldError`) directly.
|
|
665
741
|
|
|
666
742
|
## Pattern: A Chart With A Legend
|
|
@@ -673,7 +749,7 @@ import type { Handle } from "remix/component";
|
|
|
673
749
|
|
|
674
750
|
import { css } from "remix/component";
|
|
675
751
|
|
|
676
|
-
import { Chart } from "@sdxc/ui";
|
|
752
|
+
import { Chart } from "@sdxc/ui/app";
|
|
677
753
|
|
|
678
754
|
interface Point {
|
|
679
755
|
x: number;
|
|
@@ -720,9 +796,7 @@ import type { Handle } from "remix/component";
|
|
|
720
796
|
|
|
721
797
|
import { clientEntry, css } from "remix/component";
|
|
722
798
|
|
|
723
|
-
import { Bubble, Message, MessageScroller } from "@sdxc/ui";
|
|
724
|
-
import { ScrollFollowModel } from "@sdxc/ui/behaviors";
|
|
725
|
-
import { messageFollow } from "@sdxc/ui/mixins";
|
|
799
|
+
import { Bubble, Message, MessageScroller, ScrollFollowModel, messageFollow } from "@sdxc/ui/chat";
|
|
726
800
|
|
|
727
801
|
interface Turn {
|
|
728
802
|
id: string;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
10
|
import { TypedEventTarget } from "remix/component";
|
|
11
|
-
import { dispatchChange } from "
|
|
11
|
+
import { dispatchChange } from "../../utils/dispatch-change.js";
|
|
12
12
|
/**
|
|
13
13
|
* Owns one drag-and-drop interaction and dispatches a plain `"change"` event
|
|
14
14
|
* from every mutating method, so a pointer- or keyboard-driven mixin
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { generateUUID } from "@sdxc/uuid/v4";
|
|
11
11
|
import { TypedEventTarget } from "remix/component";
|
|
12
|
-
import { dispatchChange } from "
|
|
12
|
+
import { dispatchChange } from "../../utils/dispatch-change.js";
|
|
13
13
|
/** Auto-dismiss delay, in milliseconds, a toast uses when {@link Toaster.AddOptions.duration} is omitted. */
|
|
14
14
|
const DEFAULT_DURATION = 5000;
|
|
15
15
|
function toPublicToast(entry) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @copyright Sergio Xalambrí 2026
|
|
10
10
|
*/
|
|
11
11
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
12
|
-
import type { PieAngles } from "
|
|
12
|
+
import type { PieAngles } from "./utils/chart-scale.js";
|
|
13
13
|
/**
|
|
14
14
|
* Renders the series switcher's host: a `role="group"` `<div>` laying its
|
|
15
15
|
* {@link Chart.Legend.Item} children in a wrapping row. Must render as a
|