@sdxc/ui 2026.10.30 → 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 +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/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 -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/stat-strip.js +0 -65
- 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/{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
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
|
2
2
|
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
3
3
|
import { bg, fg, fill, fillOpacity, outline, stroke, strokeLinecap, strokeLinejoin, strokeWidth, vectorEffect, } from "@sdxc/u/color";
|
|
4
4
|
import { opacity, rounded, shadow, transition, transitionDuration } from "@sdxc/u/effects";
|
|
5
|
-
import { cursor, pointerEvents, raw, userSelect } from "@sdxc/u/general";
|
|
5
|
+
import { cursor, pointerEvents, raw, userSelect, mergeMix } from "@sdxc/u/general";
|
|
6
6
|
import { absolute, block, flex, flexWrap, gap, inlineBlock, inlineFlex, items, relative, shrink, } from "@sdxc/u/layout";
|
|
7
7
|
import { media } from "@sdxc/u/responsive";
|
|
8
8
|
import { bs, is, pb, pi } from "@sdxc/u/size";
|
|
@@ -12,12 +12,12 @@ import { scaleProperty, translateProperty } from "@sdxc/u/transform";
|
|
|
12
12
|
import { fontSize, leading, nowrap, tabularNums, textDecoration, weight } from "@sdxc/u/typography";
|
|
13
13
|
import { attrs } from "remix/component";
|
|
14
14
|
import { durations, easings } from "../animations/tokens.js";
|
|
15
|
-
import { CHART_COLOR_SLOT_COUNT, chartPalette } from "../styles/chart-palette.js";
|
|
16
|
-
import { legendToggle } from "../styles/legend-toggle.js";
|
|
17
|
-
import { computeMarkerIndices } from "../utils/chart-marker-indices.js";
|
|
18
|
-
import { arcPath, areaPath, linePath } from "../utils/chart-path.js";
|
|
19
|
-
import { bandScale, linearScale, pieAngles, ticks } from "../utils/chart-scale.js";
|
|
20
15
|
import { warnIfNoAccessibleLabel } from "../utils/warn-if-no-accessible-name.js";
|
|
16
|
+
import { CHART_COLOR_SLOT_COUNT, chartPalette } from "./styles/chart-palette.js";
|
|
17
|
+
import { legendToggle } from "./styles/legend-toggle.js";
|
|
18
|
+
import { computeMarkerIndices } from "./utils/chart-marker-indices.js";
|
|
19
|
+
import { arcPath, areaPath, linePath } from "./utils/chart-path.js";
|
|
20
|
+
import { bandScale, linearScale, pieAngles, ticks } from "./utils/chart-scale.js";
|
|
21
21
|
/** Categorical color {@link Chart.Line} falls back to when `color` is omitted. */
|
|
22
22
|
const DEFAULT_LINE_COLOR = 1;
|
|
23
23
|
/** Categorical color {@link Chart.Area} falls back to when `color` is omitted. */
|
|
@@ -96,14 +96,7 @@ function ChartLegend(handle) {
|
|
|
96
96
|
return () => {
|
|
97
97
|
let { mix, ...rest } = handle.props;
|
|
98
98
|
warnIfNoAccessibleLabel(handle.props, 'Chart.Legend: needs an "aria-label" or "aria-labelledby" identifying this legend for assistive technology.');
|
|
99
|
-
return (_jsx("div", { "data-slot": "legend", ...rest, mix: [
|
|
100
|
-
attrs({ role: DEFAULT_LEGEND_ROLE }),
|
|
101
|
-
flex(),
|
|
102
|
-
flexWrap(),
|
|
103
|
-
items("center"),
|
|
104
|
-
gap(4),
|
|
105
|
-
mix,
|
|
106
|
-
] }));
|
|
99
|
+
return (_jsx("div", { "data-slot": "legend", ...rest, mix: mergeMix([attrs({ role: DEFAULT_LEGEND_ROLE }), flex(), flexWrap(), items("center"), gap(4)], mix) }));
|
|
107
100
|
};
|
|
108
101
|
}
|
|
109
102
|
/**
|
|
@@ -147,7 +140,7 @@ function ChartLegendItem(handle) {
|
|
|
147
140
|
shrink(),
|
|
148
141
|
bg("currentColor"),
|
|
149
142
|
parts?.swatch,
|
|
150
|
-
] }), _jsx("input", { type: "checkbox", defaultChecked: resolvedChecked, ...rest, mix:
|
|
143
|
+
] }), _jsx("input", { type: "checkbox", defaultChecked: resolvedChecked, ...rest, mix: mergeMix(visuallyHidden(), mix) }), children] }));
|
|
151
144
|
};
|
|
152
145
|
}
|
|
153
146
|
ChartLegend.Item = ChartLegendItem;
|
|
@@ -176,7 +169,7 @@ export function Chart(handle) {
|
|
|
176
169
|
return () => {
|
|
177
170
|
let { width, height, xDomain, yDomain, mix, ...rest } = handle.props;
|
|
178
171
|
handle.context.set({ width, height, xDomain, yDomain });
|
|
179
|
-
return (_jsx("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: [legendToggle(), block(), is("full"), bs("auto"), mix
|
|
172
|
+
return (_jsx("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: mergeMix([legendToggle(), block(), is("full"), bs("auto")], mix) }));
|
|
180
173
|
};
|
|
181
174
|
}
|
|
182
175
|
Chart.Legend = ChartLegend;
|
|
@@ -236,7 +229,7 @@ Chart.Line = function ChartLine(handle) {
|
|
|
236
229
|
let scaledPoints = points.map((point) => ({ x: x(point.x), y: y(point.y) }));
|
|
237
230
|
let d = linePath(scaledPoints);
|
|
238
231
|
let markerIndices = computeMarkerIndices(points, context.xDomain, resolvedMarkerCount);
|
|
239
|
-
return (_jsxs("g", { "data-color": String(resolvedColor), ...rest, mix:
|
|
232
|
+
return (_jsxs("g", { "data-color": String(resolvedColor), ...rest, mix: mergeMix(chartPalette("color"), mix), children: [_jsx("path", { d: d, mix: [
|
|
240
233
|
attrs({ "aria-hidden": DEFAULT_PATH_ARIA_HIDDEN }),
|
|
241
234
|
fill("none"),
|
|
242
235
|
stroke("currentColor"),
|
|
@@ -269,7 +262,7 @@ Chart.Line = function ChartLine(handle) {
|
|
|
269
262
|
function ChartTooltip(handle) {
|
|
270
263
|
return () => {
|
|
271
264
|
let { mix, ...rest } = handle.props;
|
|
272
|
-
return (_jsx("div", { "data-slot": "tooltip", ...rest, mix: [
|
|
265
|
+
return (_jsx("div", { "data-slot": "tooltip", ...rest, mix: mergeMix([
|
|
273
266
|
attrs({ "aria-hidden": DEFAULT_TOOLTIP_ARIA_HIDDEN }),
|
|
274
267
|
absolute(),
|
|
275
268
|
flex(),
|
|
@@ -300,8 +293,7 @@ function ChartTooltip(handle) {
|
|
|
300
293
|
leading(1.2),
|
|
301
294
|
pointerEvents(),
|
|
302
295
|
scaleProperty(0.95),
|
|
303
|
-
|
|
304
|
-
] }));
|
|
296
|
+
], mix) }));
|
|
305
297
|
};
|
|
306
298
|
}
|
|
307
299
|
/**
|
|
@@ -318,15 +310,7 @@ ChartTooltip.Swatch = function ChartTooltipSwatch(handle) {
|
|
|
318
310
|
return () => {
|
|
319
311
|
let { color, mix, ...rest } = handle.props;
|
|
320
312
|
let resolvedColor = color ?? DEFAULT_SWATCH_COLOR;
|
|
321
|
-
return (_jsx("span", { ...rest, "data-slot": "swatch", "data-color": String(resolvedColor), mix: [
|
|
322
|
-
chartPalette("backgroundColor"),
|
|
323
|
-
inlineBlock(),
|
|
324
|
-
is(2),
|
|
325
|
-
bs(2),
|
|
326
|
-
rounded("full"),
|
|
327
|
-
shrink(),
|
|
328
|
-
mix,
|
|
329
|
-
] }));
|
|
313
|
+
return (_jsx("span", { ...rest, "data-slot": "swatch", "data-color": String(resolvedColor), mix: mergeMix([chartPalette("backgroundColor"), inlineBlock(), is(2), bs(2), rounded("full"), shrink()], mix) }));
|
|
330
314
|
};
|
|
331
315
|
};
|
|
332
316
|
/**
|
|
@@ -342,7 +326,7 @@ ChartTooltip.Swatch = function ChartTooltipSwatch(handle) {
|
|
|
342
326
|
ChartTooltip.Label = function ChartTooltipLabel(handle) {
|
|
343
327
|
return () => {
|
|
344
328
|
let { mix, ...rest } = handle.props;
|
|
345
|
-
return _jsx("span", { ...rest, "data-slot": "label", mix:
|
|
329
|
+
return _jsx("span", { ...rest, "data-slot": "label", mix: mergeMix(opacity(75), mix) });
|
|
346
330
|
};
|
|
347
331
|
};
|
|
348
332
|
/**
|
|
@@ -358,7 +342,7 @@ ChartTooltip.Label = function ChartTooltipLabel(handle) {
|
|
|
358
342
|
ChartTooltip.Value = function ChartTooltipValue(handle) {
|
|
359
343
|
return () => {
|
|
360
344
|
let { mix, ...rest } = handle.props;
|
|
361
|
-
return _jsx("span", { ...rest, "data-slot": "value", mix: [weight("semibold"), tabularNums(), mix
|
|
345
|
+
return (_jsx("span", { ...rest, "data-slot": "value", mix: mergeMix([weight("semibold"), tabularNums()], mix) }));
|
|
362
346
|
};
|
|
363
347
|
};
|
|
364
348
|
// @ts-ignore
|
|
@@ -399,7 +383,7 @@ Chart.Area = function ChartArea(handle) {
|
|
|
399
383
|
let scaledPoints = points.map((point) => ({ x: x(point.x), y: y(point.y) }));
|
|
400
384
|
let d = areaPath(scaledPoints, y(resolvedBaseline));
|
|
401
385
|
let markerIndices = computeMarkerIndices(points, context.xDomain, resolvedMarkerCount);
|
|
402
|
-
return (_jsxs("g", { "data-color": String(resolvedColor), ...rest, mix:
|
|
386
|
+
return (_jsxs("g", { "data-color": String(resolvedColor), ...rest, mix: mergeMix(chartPalette("color"), mix), children: [_jsx("path", { d: d, mix: [
|
|
403
387
|
attrs({ "aria-hidden": DEFAULT_PATH_ARIA_HIDDEN }),
|
|
404
388
|
fill("currentColor"),
|
|
405
389
|
fillOpacity("var(--ui-chart-area-fill-opacity, 0.25)"),
|
|
@@ -446,7 +430,7 @@ Chart.Pie = function ChartPie(handle) {
|
|
|
446
430
|
let cy = height / 2;
|
|
447
431
|
let outerRadius = Math.min(width, height) / 2;
|
|
448
432
|
let slices = pieAngles(data.map((datum) => datum.value), { startAngle, endAngle, padAngle });
|
|
449
|
-
return (_jsx("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: [chartPalette("fill", " "), legendToggle(), block(), is("full"), bs("auto"), mix
|
|
433
|
+
return (_jsx("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: mergeMix([chartPalette("fill", " "), legendToggle(), block(), is("full"), bs("auto")], mix), children: slices.map((slice, index) => {
|
|
450
434
|
let datum = data[index];
|
|
451
435
|
if (datum === undefined)
|
|
452
436
|
return null;
|
|
@@ -532,7 +516,7 @@ Chart.Bar = function ChartBar(handle) {
|
|
|
532
516
|
let y = linearScale(domain, [height, 0]);
|
|
533
517
|
let baselineY = y(0);
|
|
534
518
|
let gridlineValues = ticks(domain, resolvedTickCount);
|
|
535
|
-
return (_jsxs("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: [chartPalette("fill", " "), legendToggle(), block(), is("full"), bs("auto"), mix
|
|
519
|
+
return (_jsxs("svg", { viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "xMidYMid meet", ...rest, mix: mergeMix([chartPalette("fill", " "), legendToggle(), block(), is("full"), bs("auto")], mix), children: [_jsx("g", { mix: [attrs({ "aria-hidden": DEFAULT_PATH_ARIA_HIDDEN })], children: gridlineValues.map((value) => (_jsx("line", { x1: 0, x2: width, y1: y(value), y2: y(value), mix: [
|
|
536
520
|
stroke("var(--ui-neutral-border)"),
|
|
537
521
|
strokeWidth("1"),
|
|
538
522
|
vectorEffect("non-scaling-stroke"),
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
13
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
14
|
-
import { Menu } from "
|
|
15
|
-
import { Section } from "
|
|
14
|
+
import { Menu } from "../components/menu.js";
|
|
15
|
+
import { Section } from "../components/section.js";
|
|
16
16
|
/**
|
|
17
17
|
* Prop types for {@link ContextMenu} and its compound parts.
|
|
18
18
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { borderEdge, fg, outline } from "@sdxc/u/color";
|
|
3
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
3
4
|
import { mis, pb, pi, pie } from "@sdxc/u/size";
|
|
4
5
|
import { not } from "@sdxc/u/state";
|
|
5
6
|
import { tabularNums, text, weight } from "@sdxc/u/typography";
|
|
6
|
-
import { Menu } from "
|
|
7
|
-
import { Section } from "
|
|
7
|
+
import { Menu } from "../components/menu.js";
|
|
8
|
+
import { Section } from "../components/section.js";
|
|
8
9
|
/**
|
|
9
10
|
* Side {@link ContextMenu.SubContent} renders against relative to its
|
|
10
11
|
* {@link ContextMenu.SubTrigger} row when a consumer leaves `placement`
|
|
@@ -47,7 +48,7 @@ export function ContextMenu(handle) {
|
|
|
47
48
|
ContextMenu.Trigger = function ContextMenuTrigger(handle) {
|
|
48
49
|
return () => {
|
|
49
50
|
let { children, mix, ...rest } = handle.props;
|
|
50
|
-
return (_jsx("div", { ...rest, mix:
|
|
51
|
+
return (_jsx("div", { ...rest, mix: mergeMix(outline("none"), mix), children: children }));
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
@@ -78,7 +79,7 @@ ContextMenu.Item = Menu.Item;
|
|
|
78
79
|
ContextMenu.Group = function ContextMenuGroup(handle) {
|
|
79
80
|
return () => {
|
|
80
81
|
let { mix, ...rest } = handle.props;
|
|
81
|
-
return (_jsx(Section, { ...rest, mix:
|
|
82
|
+
return (_jsx(Section, { ...rest, mix: mergeMix(not(":first-child", borderEdge("block-start", { color: "neutral", width: 1 })), mix) }));
|
|
82
83
|
};
|
|
83
84
|
};
|
|
84
85
|
/**
|
|
@@ -94,7 +95,7 @@ ContextMenu.Group = function ContextMenuGroup(handle) {
|
|
|
94
95
|
ContextMenu.Label = function ContextMenuLabel(handle) {
|
|
95
96
|
return () => {
|
|
96
97
|
let { children, mix, ...rest } = handle.props;
|
|
97
|
-
return (_jsx("header", { ...rest, mix: [pi(2), pb(1), weight("semibold"), fg("neutral.muted"), text("xs"), mix
|
|
98
|
+
return (_jsx("header", { ...rest, mix: mergeMix([pi(2), pb(1), weight("semibold"), fg("neutral.muted"), text("xs")], mix), children: children }));
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
101
|
/**
|
|
@@ -127,7 +128,7 @@ ContextMenu.Separator = Menu.Separator;
|
|
|
127
128
|
ContextMenu.SubTrigger = function ContextMenuSubTrigger(handle) {
|
|
128
129
|
return () => {
|
|
129
130
|
let { mix, ...rest } = handle.props;
|
|
130
|
-
return _jsx(Menu.Item, { ...rest, mix: [pie(8), mix] });
|
|
131
|
+
return _jsx(Menu.Item, { ...rest, mix: [pie(8), ...(mix ?? [])] });
|
|
131
132
|
};
|
|
132
133
|
};
|
|
133
134
|
/**
|
|
@@ -195,6 +196,6 @@ ContextMenu.RadioGroup = ContextMenu.Group;
|
|
|
195
196
|
ContextMenu.Shortcut = function ContextMenuShortcut(handle) {
|
|
196
197
|
return () => {
|
|
197
198
|
let { children, mix, ...rest } = handle.props;
|
|
198
|
-
return (_jsx("span", { ...rest, mix: [mis("auto"), fg("neutral.muted"), text("xs"), tabularNums(), mix
|
|
199
|
+
return (_jsx("span", { ...rest, mix: mergeMix([mis("auto"), fg("neutral.muted"), text("xs"), tabularNums()], mix), children: children }));
|
|
199
200
|
};
|
|
200
201
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded, transition } from "@sdxc/u/effects";
|
|
4
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
4
5
|
import { bs, is } from "@sdxc/u/size";
|
|
5
6
|
import { when } from "@sdxc/u/state";
|
|
6
7
|
import { attrs } from "remix/component";
|
|
@@ -35,7 +36,7 @@ export function DropIndicator(handle) {
|
|
|
35
36
|
return () => {
|
|
36
37
|
let { isDropTarget, mix, ...rest } = handle.props;
|
|
37
38
|
let resolvedIsDropTarget = isDropTarget ?? DEFAULT_IS_DROP_TARGET;
|
|
38
|
-
return (_jsx("div", { ...rest, "data-drop-target": resolvedIsDropTarget ? "" : undefined, mix: [
|
|
39
|
+
return (_jsx("div", { ...rest, "data-drop-target": resolvedIsDropTarget ? "" : undefined, mix: mergeMix([
|
|
39
40
|
attrs({ "aria-hidden": DEFAULT_ARIA_HIDDEN }),
|
|
40
41
|
is("full"),
|
|
41
42
|
bs("0.125rem"),
|
|
@@ -48,7 +49,6 @@ export function DropIndicator(handle) {
|
|
|
48
49
|
*/
|
|
49
50
|
when("&:not([data-drop-target])", bg("transparent")),
|
|
50
51
|
when("&[data-drop-target]", bg("brand.solid")),
|
|
51
|
-
|
|
52
|
-
] }));
|
|
52
|
+
], mix) }));
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
4
5
|
import { flex, flexCol, gap, items, justify } from "@sdxc/u/layout";
|
|
5
6
|
import { minBs, pb, pi } from "@sdxc/u/size";
|
|
6
7
|
import { when } from "@sdxc/u/state";
|
|
@@ -31,7 +32,7 @@ export function DropZone(handle) {
|
|
|
31
32
|
return () => {
|
|
32
33
|
let { name, accept, multiple, capture, required, disabled, children, parts, mix, ...rest } = handle.props;
|
|
33
34
|
warnIfNoAccessibleName(handle.props, children, "DropZone: a zone with no visible instructional text needs an `aria-label` describing what it accepts — assistive technology has no accessible name to announce for its file input otherwise.");
|
|
34
|
-
return (_jsxs("label", { ...rest, "data-slot": "zone", mix: [
|
|
35
|
+
return (_jsxs("label", { ...rest, "data-slot": "zone", mix: mergeMix([
|
|
35
36
|
when("&:has(input:focus-visible)", outline({ color: "brand.ring", offset: 2 })),
|
|
36
37
|
flex(),
|
|
37
38
|
flexCol(),
|
|
@@ -48,7 +49,6 @@ export function DropZone(handle) {
|
|
|
48
49
|
fg("neutral"),
|
|
49
50
|
when("&[data-drop-target]", [border("brand.ring"), bg("brand.tint")]),
|
|
50
51
|
interactiveTransition(),
|
|
51
|
-
|
|
52
|
-
], children: [children, _jsx("input", { type: "file", name: name, accept: accept, multiple: multiple, capture: capture, required: required, disabled: disabled, mix: parts?.input })] }));
|
|
52
|
+
], mix), children: [children, _jsx("input", { type: "file", name: name, accept: accept, multiple: multiple, capture: capture, required: required, disabled: disabled, mix: parts?.input })] }));
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A placeholder for a product section that currently has nothing to show — a
|
|
3
3
|
* dashed-bordered panel that composes an icon, a title, a description, and
|
|
4
|
-
* an action into one empty-state layout.
|
|
4
|
+
* an action into one empty-state layout. Landing claim cells belong on
|
|
5
5
|
* {@link Feature} instead; {@link Empty} stays for in-app zero-data states.
|
|
6
6
|
* The compound parts let a consumer include only the pieces a given empty
|
|
7
7
|
* state needs.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, colorMix, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
4
5
|
import { flex, flexCol, flexWrap, gap, items, justify } from "@sdxc/u/layout";
|
|
5
6
|
import { bs, is, mbs, p } from "@sdxc/u/size";
|
|
6
7
|
import { balance, fontSize, leading, pretty, textAlign, tracking, weight, } from "@sdxc/u/typography";
|
|
7
8
|
import { attrs } from "remix/component";
|
|
9
|
+
import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
8
10
|
import { semanticColorPanel } from "../styles/semantic-color-panel.js";
|
|
9
11
|
import { DEFAULT_ICON_ARIA_HIDDEN } from "../utils/decorative-icon.js";
|
|
10
|
-
import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
|
|
11
12
|
/**
|
|
12
13
|
* Default {@link Empty.Props.color}, rendering the panel in the neutral
|
|
13
14
|
* tone when a consumer names no semantic color.
|
|
@@ -37,7 +38,7 @@ const DEFAULT_COLOR = "neutral";
|
|
|
37
38
|
export function Empty(handle) {
|
|
38
39
|
return () => {
|
|
39
40
|
let { color = DEFAULT_COLOR, children, mix, ...rest } = handle.props;
|
|
40
|
-
return (_jsx("div", { ...rest, "data-color": color, "data-slot": "empty", mix: [
|
|
41
|
+
return (_jsx("div", { ...rest, "data-color": color, "data-slot": "empty", mix: mergeMix([
|
|
41
42
|
semanticColorPanel(),
|
|
42
43
|
flex(),
|
|
43
44
|
flexCol(),
|
|
@@ -48,8 +49,7 @@ export function Empty(handle) {
|
|
|
48
49
|
border({ width: "1px", style: "dashed" }),
|
|
49
50
|
p(8),
|
|
50
51
|
textAlign("center"),
|
|
51
|
-
|
|
52
|
-
], children: children }));
|
|
52
|
+
], mix), children: children }));
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
@@ -63,7 +63,7 @@ export function Empty(handle) {
|
|
|
63
63
|
Empty.Icon = function EmptyIcon(handle) {
|
|
64
64
|
return () => {
|
|
65
65
|
let { children, mix, ...rest } = handle.props;
|
|
66
|
-
return (_jsx("div", { ...rest, "data-slot": "icon", mix: [
|
|
66
|
+
return (_jsx("div", { ...rest, "data-slot": "icon", mix: mergeMix([
|
|
67
67
|
attrs({ "aria-hidden": DEFAULT_ICON_ARIA_HIDDEN }),
|
|
68
68
|
flex(),
|
|
69
69
|
bs("3rem"),
|
|
@@ -75,8 +75,7 @@ Empty.Icon = function EmptyIcon(handle) {
|
|
|
75
75
|
fg("currentcolor"),
|
|
76
76
|
border(colorMix("oklab", { color: "currentcolor", weight: 20 }, "transparent")),
|
|
77
77
|
bg(colorMix("oklab", { color: "currentcolor", weight: 10 }, "transparent")),
|
|
78
|
-
|
|
79
|
-
], children: children }));
|
|
78
|
+
], mix), children: children }));
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
81
|
/**
|
|
@@ -92,14 +91,7 @@ Empty.Title = function EmptyTitle(handle) {
|
|
|
92
91
|
let { children, mix, ...rest } = handle.props;
|
|
93
92
|
let level = resolveHeadingLevel(handle);
|
|
94
93
|
let Tag = TAG_BY_LEVEL[level];
|
|
95
|
-
return (_jsx(Tag, { ...rest, "data-slot": "title", mix: [
|
|
96
|
-
weight("semibold"),
|
|
97
|
-
tracking("tight"),
|
|
98
|
-
fontSize("base"),
|
|
99
|
-
leading("snug"),
|
|
100
|
-
balance(),
|
|
101
|
-
mix,
|
|
102
|
-
], children: children }));
|
|
94
|
+
return (_jsx(Tag, { ...rest, "data-slot": "title", mix: mergeMix([weight("semibold"), tracking("tight"), fontSize("base"), leading("snug"), balance()], mix), children: children }));
|
|
103
95
|
};
|
|
104
96
|
};
|
|
105
97
|
/**
|
|
@@ -113,13 +105,12 @@ Empty.Title = function EmptyTitle(handle) {
|
|
|
113
105
|
Empty.Description = function EmptyDescription(handle) {
|
|
114
106
|
return () => {
|
|
115
107
|
let { children, mix, ...rest } = handle.props;
|
|
116
|
-
return (_jsx("p", { ...rest, "data-slot": "description", mix: [
|
|
108
|
+
return (_jsx("p", { ...rest, "data-slot": "description", mix: mergeMix([
|
|
117
109
|
fontSize("sm"),
|
|
118
110
|
leading("relaxed"),
|
|
119
111
|
pretty(),
|
|
120
112
|
fg(colorMix("oklab", { color: "currentcolor", weight: 70 }, "transparent")),
|
|
121
|
-
|
|
122
|
-
], children: children }));
|
|
113
|
+
], mix), children: children }));
|
|
123
114
|
};
|
|
124
115
|
};
|
|
125
116
|
/**
|
|
@@ -134,7 +125,7 @@ Empty.Description = function EmptyDescription(handle) {
|
|
|
134
125
|
Empty.Action = function EmptyAction(handle) {
|
|
135
126
|
return () => {
|
|
136
127
|
let { children, mix, ...rest } = handle.props;
|
|
137
|
-
return (_jsx("div", { ...rest, "data-slot": "action", mix: [
|
|
128
|
+
return (_jsx("div", { ...rest, "data-slot": "action", mix: mergeMix([
|
|
138
129
|
/**
|
|
139
130
|
* The slot lays out however many actions the state offers as a centered row that
|
|
140
131
|
* wraps, since two buttons side by side outgrow a narrow panel.
|
|
@@ -145,7 +136,6 @@ Empty.Action = function EmptyAction(handle) {
|
|
|
145
136
|
justify("center"),
|
|
146
137
|
gap(2),
|
|
147
138
|
mbs(1),
|
|
148
|
-
|
|
149
|
-
], children: children }));
|
|
139
|
+
], mix), children: children }));
|
|
150
140
|
};
|
|
151
141
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
|
2
2
|
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
3
3
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
5
|
-
import { cursor, userSelect } from "@sdxc/u/general";
|
|
5
|
+
import { cursor, userSelect, mergeMix } from "@sdxc/u/general";
|
|
6
6
|
import { gap, inlineFlex, items, justify, shrink } from "@sdxc/u/layout";
|
|
7
7
|
import { bs, is, minBs, pb, pi } from "@sdxc/u/size";
|
|
8
8
|
import { active, data, hover, when } from "@sdxc/u/state";
|
|
@@ -181,6 +181,6 @@ export function FileTrigger(handle) {
|
|
|
181
181
|
]),
|
|
182
182
|
]),
|
|
183
183
|
parts?.trigger,
|
|
184
|
-
], children: [children, _jsx("input", { type: "file", ...rest, mix: [acceptDirectory && attrs({ webkitdirectory: true }), visuallyHidden(), mix
|
|
184
|
+
], children: [children, _jsx("input", { type: "file", ...rest, mix: mergeMix([acceptDirectory && attrs({ webkitdirectory: true }), visuallyHidden()], mix) })] }));
|
|
185
185
|
};
|
|
186
186
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
14
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
15
|
-
import { SentinelRow } from "
|
|
15
|
+
import { SentinelRow } from "../components/sentinel-row.js";
|
|
16
16
|
/**
|
|
17
17
|
* Prop types for {@link GridList} and its compound parts.
|
|
18
18
|
*/
|
|
@@ -2,18 +2,18 @@ import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
|
2
2
|
import { GripVerticalIcon } from "@sdxc/icons";
|
|
3
3
|
import { bg, borderEdge, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { opacity, rounded } from "@sdxc/u/effects";
|
|
5
|
-
import { cursor } from "@sdxc/u/general";
|
|
5
|
+
import { cursor, mergeMix } from "@sdxc/u/general";
|
|
6
6
|
import { container, flex, flexCol, gap, grid, gridTemplate, items, relative, shrink, virtualize, } from "@sdxc/u/layout";
|
|
7
7
|
import { at } from "@sdxc/u/responsive";
|
|
8
8
|
import { bs, is, mbs, pb, pbs, pi } from "@sdxc/u/size";
|
|
9
9
|
import { active, data, not, when } from "@sdxc/u/state";
|
|
10
10
|
import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
|
|
11
11
|
import { attrs } from "remix/component";
|
|
12
|
+
import { SentinelRow } from "../components/sentinel-row.js";
|
|
12
13
|
import { hitArea } from "../styles/hit-area.js";
|
|
13
14
|
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
14
15
|
import { panelChrome } from "../styles/panel-chrome.js";
|
|
15
16
|
import { warnIfNoAccessibleLabel } from "../utils/warn-if-no-accessible-name.js";
|
|
16
|
-
import { SentinelRow } from "./sentinel-row.js";
|
|
17
17
|
/**
|
|
18
18
|
* Named container {@link GridList} declares on its own host, so its inner
|
|
19
19
|
* row-list wrapper can react to the list's own width — switching a `"grid"`
|
|
@@ -65,7 +65,7 @@ export function GridList(handle) {
|
|
|
65
65
|
let { layout, children, parts, mix, ...rest } = handle.props;
|
|
66
66
|
let resolvedLayout = layout ?? DEFAULT_LAYOUT;
|
|
67
67
|
warnIfNoAccessibleLabel(handle.props, 'GridList: needs an "aria-label" or "aria-labelledby" describing its contents for assistive technology.');
|
|
68
|
-
return (_jsx("div", { ...rest, mix: [
|
|
68
|
+
return (_jsx("div", { ...rest, mix: mergeMix([
|
|
69
69
|
attrs({ role: DEFAULT_ROLE }),
|
|
70
70
|
panelChrome(),
|
|
71
71
|
when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
@@ -73,8 +73,7 @@ export function GridList(handle) {
|
|
|
73
73
|
pi(2),
|
|
74
74
|
outline("none"),
|
|
75
75
|
container(CONTAINER_NAME),
|
|
76
|
-
|
|
77
|
-
], children: _jsx("div", { "data-slot": "list", "data-layout": resolvedLayout, mix: [
|
|
76
|
+
], mix), children: _jsx("div", { "data-slot": "list", "data-layout": resolvedLayout, mix: [
|
|
78
77
|
flex(),
|
|
79
78
|
flexCol(),
|
|
80
79
|
gap(1),
|
|
@@ -107,7 +106,7 @@ export function GridList(handle) {
|
|
|
107
106
|
GridList.Item = function GridListItem(handle) {
|
|
108
107
|
return () => {
|
|
109
108
|
let { id, mix, ...rest } = handle.props;
|
|
110
|
-
return (_jsx("div", { ...rest, id: id, "data-rmx-key": id, mix: [
|
|
109
|
+
return (_jsx("div", { ...rest, id: id, "data-rmx-key": id, mix: mergeMix([
|
|
111
110
|
interactiveTransition(),
|
|
112
111
|
attrs({ role: DEFAULT_ITEM_ROLE, tabIndex: DEFAULT_ITEM_TAB_INDEX }),
|
|
113
112
|
flex(),
|
|
@@ -136,8 +135,7 @@ GridList.Item = function GridListItem(handle) {
|
|
|
136
135
|
when('&[aria-disabled="true"]', opacity(50)),
|
|
137
136
|
cursor("default"),
|
|
138
137
|
outline("none"),
|
|
139
|
-
|
|
140
|
-
] }));
|
|
138
|
+
], mix) }));
|
|
141
139
|
};
|
|
142
140
|
};
|
|
143
141
|
/**
|
|
@@ -156,7 +154,7 @@ GridList.Item = function GridListItem(handle) {
|
|
|
156
154
|
GridList.Section = function GridListSection(handle) {
|
|
157
155
|
return () => {
|
|
158
156
|
let { mix, ...rest } = handle.props;
|
|
159
|
-
return (_jsx("div", { ...rest, mix: [
|
|
157
|
+
return (_jsx("div", { ...rest, mix: mergeMix([
|
|
160
158
|
attrs({ role: DEFAULT_SECTION_ROLE }),
|
|
161
159
|
flex(),
|
|
162
160
|
flexCol(),
|
|
@@ -166,8 +164,7 @@ GridList.Section = function GridListSection(handle) {
|
|
|
166
164
|
pbs(2),
|
|
167
165
|
borderEdge("block-start", { color: "neutral", width: 1 }),
|
|
168
166
|
]),
|
|
169
|
-
|
|
170
|
-
] }));
|
|
167
|
+
], mix) }));
|
|
171
168
|
};
|
|
172
169
|
};
|
|
173
170
|
/**
|
|
@@ -183,7 +180,7 @@ GridList.Section = function GridListSection(handle) {
|
|
|
183
180
|
GridList.Header = function GridListHeader(handle) {
|
|
184
181
|
return () => {
|
|
185
182
|
let { mix, ...rest } = handle.props;
|
|
186
|
-
return (_jsx("header", { ...rest, mix: [
|
|
183
|
+
return (_jsx("header", { ...rest, mix: mergeMix([
|
|
187
184
|
pb(1),
|
|
188
185
|
pi(2),
|
|
189
186
|
weight("semibold"),
|
|
@@ -191,8 +188,7 @@ GridList.Header = function GridListHeader(handle) {
|
|
|
191
188
|
fg("neutral.muted"),
|
|
192
189
|
text("xs"),
|
|
193
190
|
textTransform("uppercase"),
|
|
194
|
-
|
|
195
|
-
] }));
|
|
191
|
+
], mix) }));
|
|
196
192
|
};
|
|
197
193
|
};
|
|
198
194
|
/**
|
|
@@ -222,14 +218,16 @@ GridList.LoadMoreItem = SentinelRow;
|
|
|
222
218
|
GridList.DragHandle = function GridListDragHandle(handle) {
|
|
223
219
|
return () => {
|
|
224
220
|
let { mix, ...rest } = handle.props;
|
|
225
|
-
return (_jsx("button", { type: "button", ...rest, mix: [
|
|
226
|
-
attrs({
|
|
221
|
+
return (_jsx("button", { type: "button", ...rest, mix: mergeMix([
|
|
222
|
+
attrs({
|
|
223
|
+
role: DEFAULT_DRAG_HANDLE_ROLE,
|
|
224
|
+
"data-drag-handle": DEFAULT_DRAG_HANDLE_MARKER,
|
|
225
|
+
}),
|
|
227
226
|
relative(),
|
|
228
227
|
hitArea(),
|
|
229
228
|
fg("neutral.muted"),
|
|
230
229
|
cursor("grab"),
|
|
231
230
|
active(cursor("grabbing")),
|
|
232
|
-
|
|
233
|
-
], children: _jsx(GripVerticalIcon, { size: 16 }) }));
|
|
231
|
+
], mix), children: _jsx(GripVerticalIcon, { size: 16 }) }));
|
|
234
232
|
};
|
|
235
233
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/app`: the dashboard and workspace components (charts, data
|
|
3
|
+
* tables, lists, trees, toolbars, toasts, file drops) with the helpers only they use.
|
|
4
|
+
* Each component also imports on its own as `@sdxc/ui/app/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./behaviors/drag-session.js";
|
|
10
|
+
export * from "./behaviors/resize-session.js";
|
|
11
|
+
export * from "./behaviors/selection-model.js";
|
|
12
|
+
export * from "./behaviors/toaster.js";
|
|
13
|
+
export * from "./chart.js";
|
|
14
|
+
export * from "./context-menu.js";
|
|
15
|
+
export * from "./drop-indicator.js";
|
|
16
|
+
export * from "./drop-zone.js";
|
|
17
|
+
export * from "./empty.js";
|
|
18
|
+
export * from "./file-trigger.js";
|
|
19
|
+
export * from "./grid-list.js";
|
|
20
|
+
export * from "./menubar.js";
|
|
21
|
+
export * from "./mixins/chart-tooltip.js";
|
|
22
|
+
export * from "./mixins/context-menu.js";
|
|
23
|
+
export * from "./mixins/drag-reorder.js";
|
|
24
|
+
export * from "./mixins/drop-zone.js";
|
|
25
|
+
export * from "./mixins/grid-list-keys.js";
|
|
26
|
+
export * from "./mixins/menubar-keys.js";
|
|
27
|
+
export * from "./mixins/resize-handle.js";
|
|
28
|
+
export * from "./mixins/tree-keys.js";
|
|
29
|
+
export * from "./resizable.js";
|
|
30
|
+
export * from "./shortcut-list.js";
|
|
31
|
+
export * from "./skeleton.js";
|
|
32
|
+
export * from "./styles/chart-palette.js";
|
|
33
|
+
export * from "./styles/graphic-host.js";
|
|
34
|
+
export * from "./styles/legend-toggle.js";
|
|
35
|
+
export * from "./table.js";
|
|
36
|
+
export * from "./toast.js";
|
|
37
|
+
export * from "./toolbar.js";
|
|
38
|
+
export * from "./tree.js";
|
|
39
|
+
export * from "./utils/chart-marker-indices.js";
|
|
40
|
+
export * from "./utils/chart-path.js";
|
|
41
|
+
export * from "./utils/chart-scale.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/app`: the dashboard and workspace components (charts, data
|
|
3
|
+
* tables, lists, trees, toolbars, toasts, file drops) with the helpers only they use.
|
|
4
|
+
* Each component also imports on its own as `@sdxc/ui/app/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./behaviors/drag-session.js";
|
|
10
|
+
export * from "./behaviors/resize-session.js";
|
|
11
|
+
export * from "./behaviors/selection-model.js";
|
|
12
|
+
export * from "./behaviors/toaster.js";
|
|
13
|
+
export * from "./chart.js";
|
|
14
|
+
export * from "./context-menu.js";
|
|
15
|
+
export * from "./drop-indicator.js";
|
|
16
|
+
export * from "./drop-zone.js";
|
|
17
|
+
export * from "./empty.js";
|
|
18
|
+
export * from "./file-trigger.js";
|
|
19
|
+
export * from "./grid-list.js";
|
|
20
|
+
export * from "./menubar.js";
|
|
21
|
+
export * from "./mixins/chart-tooltip.js";
|
|
22
|
+
export * from "./mixins/context-menu.js";
|
|
23
|
+
export * from "./mixins/drag-reorder.js";
|
|
24
|
+
export * from "./mixins/drop-zone.js";
|
|
25
|
+
export * from "./mixins/grid-list-keys.js";
|
|
26
|
+
export * from "./mixins/menubar-keys.js";
|
|
27
|
+
export * from "./mixins/resize-handle.js";
|
|
28
|
+
export * from "./mixins/tree-keys.js";
|
|
29
|
+
export * from "./resizable.js";
|
|
30
|
+
export * from "./shortcut-list.js";
|
|
31
|
+
export * from "./skeleton.js";
|
|
32
|
+
export * from "./styles/chart-palette.js";
|
|
33
|
+
export * from "./styles/graphic-host.js";
|
|
34
|
+
export * from "./styles/legend-toggle.js";
|
|
35
|
+
export * from "./table.js";
|
|
36
|
+
export * from "./toast.js";
|
|
37
|
+
export * from "./toolbar.js";
|
|
38
|
+
export * from "./tree.js";
|
|
39
|
+
export * from "./utils/chart-marker-indices.js";
|
|
40
|
+
export * from "./utils/chart-path.js";
|
|
41
|
+
export * from "./utils/chart-scale.js";
|