@sdxc/ui 2026.10.30 → 2026.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +187 -113
- package/dist/app/app-shell-toggle.d.ts +31 -0
- package/dist/app/app-shell-toggle.js +43 -0
- package/dist/app/app-shell.d.ts +131 -0
- package/dist/app/app-shell.js +542 -0
- package/dist/app/auto-refresh.d.ts +104 -0
- package/dist/app/auto-refresh.js +126 -0
- package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
- package/dist/app/behaviors/refresh-schedule.js +95 -0
- package/dist/app/behaviors/shortcuts.d.ts +175 -0
- package/dist/app/behaviors/shortcuts.js +401 -0
- package/dist/{behaviors → app/behaviors}/toaster.d.ts +31 -2
- package/dist/{behaviors → app/behaviors}/toaster.js +63 -6
- package/dist/{components → app}/chart.d.ts +63 -9
- package/dist/{components → app}/chart.js +222 -40
- package/dist/app/command-palette.d.ts +132 -0
- package/dist/app/command-palette.js +181 -0
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/app/danger-zone.d.ts +66 -0
- package/dist/app/danger-zone.js +66 -0
- package/dist/app/detail-sheet.d.ts +119 -0
- package/dist/app/detail-sheet.js +173 -0
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.d.ts +2 -1
- package/dist/{components → app}/drop-zone.js +7 -4
- package/dist/app/editor-layout.d.ts +69 -0
- package/dist/app/editor-layout.js +143 -0
- package/dist/app/empty.d.ts +128 -0
- package/dist/app/empty.js +248 -0
- package/dist/{components → app}/file-trigger.js +2 -2
- package/dist/app/filter-bar.d.ts +169 -0
- package/dist/app/filter-bar.js +346 -0
- package/dist/{components → app}/grid-list.d.ts +1 -1
- package/dist/{components → app}/grid-list.js +16 -18
- package/dist/app/index.d.ts +92 -0
- package/dist/app/index.js +92 -0
- package/dist/app/keyboard-help.d.ts +66 -0
- package/dist/app/keyboard-help.js +56 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/app/mixins/app-shell-controls.d.ts +46 -0
- package/dist/app/mixins/app-shell-controls.js +131 -0
- package/dist/app/mixins/auto-refresh.d.ts +29 -0
- package/dist/app/mixins/auto-refresh.js +66 -0
- package/dist/app/mixins/command-palette.d.ts +56 -0
- package/dist/app/mixins/command-palette.js +297 -0
- package/dist/app/mixins/copy-permalink.d.ts +26 -0
- package/dist/app/mixins/copy-permalink.js +54 -0
- package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
- package/dist/app/mixins/detail-sheet-keys.js +88 -0
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/app/mixins/escape-link.d.ts +17 -0
- package/dist/app/mixins/escape-link.js +35 -0
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/app/mixins/keyboard-help.d.ts +38 -0
- package/dist/app/mixins/keyboard-help.js +51 -0
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
- package/dist/app/mixins/range-picker-keys.d.ts +18 -0
- package/dist/app/mixins/range-picker-keys.js +94 -0
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/app/mixins/row-navigation.d.ts +85 -0
- package/dist/app/mixins/row-navigation.js +208 -0
- package/dist/app/mixins/save-bar-sync.d.ts +27 -0
- package/dist/app/mixins/save-bar-sync.js +106 -0
- package/dist/app/mixins/save-shortcut.d.ts +47 -0
- package/dist/app/mixins/save-shortcut.js +101 -0
- package/dist/app/mixins/save-status-sync.d.ts +77 -0
- package/dist/app/mixins/save-status-sync.js +159 -0
- package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
- package/dist/app/mixins/selection-bar-sync.js +151 -0
- package/dist/app/mixins/split-view.d.ts +66 -0
- package/dist/app/mixins/split-view.js +319 -0
- package/dist/app/mixins/status-strip-keys.d.ts +17 -0
- package/dist/app/mixins/status-strip-keys.js +79 -0
- package/dist/app/mixins/submit-on-change.d.ts +16 -0
- package/dist/app/mixins/submit-on-change.js +28 -0
- package/dist/app/mixins/table-selection.d.ts +39 -0
- package/dist/app/mixins/table-selection.js +272 -0
- package/dist/app/mixins/toast-queue.d.ts +36 -0
- package/dist/app/mixins/toast-queue.js +77 -0
- package/dist/app/mixins/toast-stack.d.ts +20 -0
- package/dist/app/mixins/toast-stack.js +55 -0
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/app/optimistic-toggle.d.ts +48 -0
- package/dist/app/optimistic-toggle.js +38 -0
- package/dist/app/page-header.d.ts +71 -0
- package/dist/app/page-header.js +249 -0
- package/dist/app/range-picker.d.ts +102 -0
- package/dist/app/range-picker.js +118 -0
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/app/save-bar.d.ts +54 -0
- package/dist/app/save-bar.js +64 -0
- package/dist/app/save-status.d.ts +50 -0
- package/dist/app/save-status.js +54 -0
- package/dist/app/selection-bar.d.ts +101 -0
- package/dist/app/selection-bar.js +157 -0
- package/dist/app/settings-layout.d.ts +70 -0
- package/dist/app/settings-layout.js +112 -0
- package/dist/app/settings-section.d.ts +140 -0
- package/dist/app/settings-section.js +182 -0
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/app/skeleton.d.ts +79 -0
- package/dist/app/skeleton.js +185 -0
- package/dist/app/sparkline.d.ts +61 -0
- package/dist/app/sparkline.js +145 -0
- package/dist/app/split-view.d.ts +154 -0
- package/dist/app/split-view.js +272 -0
- package/dist/app/stat-card.d.ts +109 -0
- package/dist/app/stat-card.js +379 -0
- package/dist/app/status-strip.d.ts +70 -0
- package/dist/app/status-strip.js +155 -0
- package/dist/app/styles/action-row.d.ts +41 -0
- package/dist/app/styles/action-row.js +59 -0
- package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
- package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
- package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
- package/dist/app/styles/stat-delta.d.ts +29 -0
- package/dist/app/styles/stat-delta.js +36 -0
- package/dist/app/styles/toast-stack.d.ts +21 -0
- package/dist/app/styles/toast-stack.js +54 -0
- package/dist/app/table.d.ts +327 -0
- package/dist/app/table.js +839 -0
- package/dist/{components → app}/toast.d.ts +105 -5
- package/dist/{components → app}/toast.js +101 -35
- package/dist/app/toasts.d.ts +49 -0
- package/dist/app/toasts.js +103 -0
- package/dist/{components → app}/toolbar.js +3 -3
- package/dist/{components → app}/tree.d.ts +1 -1
- package/dist/{components → app}/tree.js +10 -14
- package/dist/app/utils/app-shell-cookie.d.ts +21 -0
- package/dist/app/utils/app-shell-cookie.js +33 -0
- package/dist/{utils → app/utils}/chart-marker-indices.d.ts +9 -5
- package/dist/{utils → app/utils}/chart-marker-indices.js +9 -8
- package/dist/{utils → app/utils}/chart-path.d.ts +15 -11
- package/dist/{utils → app/utils}/chart-path.js +48 -20
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- package/dist/app/utils/edited-time.d.ts +19 -0
- package/dist/app/utils/edited-time.js +35 -0
- package/dist/app/utils/key-target.d.ts +23 -0
- package/dist/app/utils/key-target.js +48 -0
- package/dist/app/utils/search-params.d.ts +69 -0
- package/dist/app/utils/search-params.js +132 -0
- package/dist/app/utils/shortcut-groups.d.ts +21 -0
- package/dist/app/utils/shortcut-groups.js +53 -0
- package/dist/app/utils/split-view-layout.d.ts +48 -0
- package/dist/app/utils/split-view-layout.js +71 -0
- package/dist/app/view-options.d.ts +99 -0
- package/dist/app/view-options.js +182 -0
- package/dist/behaviors/index.d.ts +0 -5
- package/dist/behaviors/index.js +0 -5
- package/dist/{components → chat}/attachment.d.ts +1 -1
- package/dist/{components → chat}/attachment.js +17 -23
- package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
- package/dist/{components → chat}/bubble.js +14 -14
- package/dist/chat/index.d.ts +16 -0
- package/dist/chat/index.js +16 -0
- package/dist/{components → chat}/marker.js +6 -8
- package/dist/{components → chat}/message-scroller.d.ts +1 -1
- package/dist/{components → chat}/message-scroller.js +12 -18
- package/dist/{components → chat}/message.js +10 -12
- package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
- package/dist/{components → color}/color-area.js +7 -10
- package/dist/{components → color}/color-field.js +7 -6
- package/dist/{components → color}/color-picker.d.ts +1 -1
- package/dist/{components → color}/color-picker.js +9 -12
- package/dist/{components → color}/color-slider.js +10 -13
- package/dist/{components → color}/color-swatch-picker.js +4 -5
- package/dist/{components → color}/color-swatch.js +3 -4
- package/dist/{components → color}/color-wheel.js +5 -6
- package/dist/color/index.d.ts +21 -0
- package/dist/color/index.js +21 -0
- package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
- package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
- package/dist/{mixins → color/mixins}/color-preview.js +1 -1
- package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
- package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +19 -15
- package/dist/components/alert-dialog.js +5 -4
- package/dist/components/alert.js +10 -20
- package/dist/components/aspect-ratio.js +3 -4
- package/dist/components/avatar.d.ts +6 -6
- package/dist/components/avatar.js +56 -8
- package/dist/components/badge.js +11 -9
- package/dist/components/banner.d.ts +61 -0
- package/dist/components/banner.js +101 -0
- package/dist/components/breadcrumbs.js +7 -9
- package/dist/components/button.d.ts +8 -6
- package/dist/components/button.js +22 -14
- package/dist/components/calendar.js +13 -24
- package/dist/components/card.js +9 -11
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +12 -20
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.js +10 -14
- package/dist/components/confirm.d.ts +54 -5
- package/dist/components/confirm.js +44 -5
- package/dist/components/cta-group.d.ts +30 -14
- package/dist/components/cta-group.js +29 -10
- package/dist/components/date-field.js +2 -1
- package/dist/components/date-picker.js +4 -5
- package/dist/components/date-range-picker.js +3 -2
- package/dist/components/description.js +2 -1
- package/dist/components/dialog-dismiss.d.ts +18 -0
- package/dist/components/dialog-dismiss.js +15 -0
- package/dist/components/dialog.js +11 -15
- package/dist/components/disclosure.js +10 -14
- package/dist/components/drawer.js +3 -4
- package/dist/components/field-error.js +3 -3
- package/dist/components/form.js +2 -1
- package/dist/components/group.d.ts +14 -0
- package/dist/components/group.js +68 -13
- package/dist/components/header.js +3 -3
- package/dist/components/heading-scope.js +2 -1
- package/dist/components/heading.d.ts +4 -4
- package/dist/components/heading.js +7 -7
- package/dist/components/highlight.js +17 -12
- package/dist/components/hover-card.js +6 -8
- package/dist/components/image-placeholder.js +13 -19
- package/dist/components/index.d.ts +11 -38
- package/dist/components/index.js +11 -38
- package/dist/components/input.js +12 -7
- package/dist/components/item.js +10 -19
- package/dist/components/keyboard.js +3 -3
- package/dist/components/label.js +2 -1
- package/dist/components/link-button.d.ts +7 -5
- package/dist/components/link-button.js +24 -13
- package/dist/components/link.js +3 -4
- package/dist/components/listbox.js +6 -11
- package/dist/components/menu.js +5 -6
- package/dist/components/meter.js +5 -6
- package/dist/components/modal.js +9 -11
- package/dist/components/nav-link.d.ts +1 -1
- package/dist/components/nav-link.js +3 -4
- package/dist/components/navigation-menu.js +17 -23
- package/dist/components/number-field.js +8 -10
- package/dist/components/otp-field.js +2 -1
- package/dist/components/overlay-arrow.js +3 -4
- package/dist/components/pagination.js +8 -10
- package/dist/components/popover.js +3 -4
- package/dist/components/progress-bar.js +5 -5
- package/dist/components/property-list.d.ts +76 -0
- package/dist/components/property-list.js +175 -0
- package/dist/components/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- package/dist/components/relative-time.d.ts +72 -0
- package/dist/components/relative-time.js +45 -0
- package/dist/components/scroll-area.js +4 -5
- package/dist/components/search-field.js +8 -11
- package/dist/components/section.js +2 -1
- package/dist/components/select.js +10 -22
- package/dist/components/selection-indicator.js +3 -3
- package/dist/components/sentinel-row.js +3 -3
- package/dist/components/separator.js +3 -3
- package/dist/components/shared-element.js +2 -1
- package/dist/components/sheet.js +6 -7
- package/dist/components/sidebar.js +48 -76
- package/dist/components/slider.js +8 -10
- package/dist/components/spinner.js +3 -3
- package/dist/components/status-dot.d.ts +62 -0
- package/dist/components/status-dot.js +99 -0
- package/dist/components/switch.js +3 -3
- package/dist/components/tabs.js +9 -12
- package/dist/components/tag-group.js +7 -9
- package/dist/components/text-field.d.ts +17 -2
- package/dist/components/text-field.js +14 -4
- package/dist/components/text.js +2 -1
- package/dist/components/textarea.js +3 -4
- package/dist/components/time-field.js +2 -1
- package/dist/components/timeline.d.ts +67 -0
- package/dist/components/timeline.js +159 -0
- package/dist/components/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.d.ts +2 -1
- package/dist/components/typeset.js +131 -123
- package/dist/components/youtube-embed.js +2 -1
- package/dist/docs/anchor-heading.d.ts +41 -0
- package/dist/docs/anchor-heading.js +62 -0
- package/dist/docs/callout.d.ts +46 -0
- package/dist/docs/callout.js +61 -0
- package/dist/docs/code-block.d.ts +74 -0
- package/dist/docs/code-block.js +322 -0
- package/dist/docs/code-tabs-sync.d.ts +26 -0
- package/dist/docs/code-tabs-sync.js +12 -0
- package/dist/docs/code-tabs.d.ts +53 -0
- package/dist/docs/code-tabs.js +102 -0
- package/dist/docs/copy-button.d.ts +31 -0
- package/dist/docs/copy-button.js +49 -0
- package/dist/docs/docs-feedback.d.ts +67 -0
- package/dist/docs/docs-feedback.js +74 -0
- package/dist/docs/docs-footer.d.ts +40 -0
- package/dist/docs/docs-footer.js +45 -0
- package/dist/docs/docs-hub.d.ts +93 -0
- package/dist/docs/docs-hub.js +142 -0
- package/dist/docs/docs-layout.d.ts +90 -0
- package/dist/docs/docs-layout.js +166 -0
- package/dist/docs/docs-nav-tools.d.ts +25 -0
- package/dist/docs/docs-nav-tools.js +14 -0
- package/dist/docs/docs-nav.d.ts +57 -0
- package/dist/docs/docs-nav.js +76 -0
- package/dist/docs/docs-not-found.d.ts +68 -0
- package/dist/docs/docs-not-found.js +100 -0
- package/dist/docs/docs-page-header.d.ts +55 -0
- package/dist/docs/docs-page-header.js +54 -0
- package/dist/docs/docs-pager.d.ts +50 -0
- package/dist/docs/docs-pager.js +75 -0
- package/dist/docs/file-tree.d.ts +57 -0
- package/dist/docs/file-tree.js +142 -0
- package/dist/docs/index.d.ts +38 -0
- package/dist/docs/index.js +38 -0
- package/dist/docs/install-command.d.ts +54 -0
- package/dist/docs/install-command.js +33 -0
- package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
- package/dist/docs/mixins/code-tabs-sync.js +137 -0
- package/dist/docs/mixins/copy-feedback.d.ts +25 -0
- package/dist/docs/mixins/copy-feedback.js +49 -0
- package/dist/docs/mixins/copy-from-url.d.ts +27 -0
- package/dist/docs/mixins/copy-from-url.js +95 -0
- package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
- package/dist/docs/mixins/docs-nav-tools.js +124 -0
- package/dist/docs/mixins/toc-spy.d.ts +30 -0
- package/dist/docs/mixins/toc-spy.js +165 -0
- package/dist/docs/next-steps.d.ts +45 -0
- package/dist/docs/next-steps.js +80 -0
- package/dist/docs/page-actions.d.ts +77 -0
- package/dist/docs/page-actions.js +78 -0
- package/dist/docs/plan-notice.d.ts +28 -0
- package/dist/docs/plan-notice.js +33 -0
- package/dist/docs/props-table.d.ts +64 -0
- package/dist/docs/props-table.js +147 -0
- package/dist/docs/steps.d.ts +51 -0
- package/dist/docs/steps.js +112 -0
- package/dist/docs/table-of-contents.d.ts +49 -0
- package/dist/docs/table-of-contents.js +139 -0
- package/dist/docs/ui-label.d.ts +51 -0
- package/dist/docs/ui-label.js +64 -0
- package/dist/docs/utils/docs-tree.d.ts +81 -0
- package/dist/docs/utils/docs-tree.js +57 -0
- package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
- package/dist/docs/utils/reveal-in-scroller.js +43 -0
- package/dist/landing/accent-text.d.ts +47 -0
- package/dist/landing/accent-text.js +107 -0
- package/dist/landing/animations/entrance.d.ts +40 -0
- package/dist/landing/animations/entrance.js +52 -0
- package/dist/landing/announcement-chip.d.ts +45 -0
- package/dist/landing/announcement-chip.js +36 -0
- package/dist/landing/author-band.d.ts +78 -0
- package/dist/landing/author-band.js +190 -0
- package/dist/landing/bento.d.ts +99 -0
- package/dist/landing/bento.js +138 -0
- package/dist/landing/changelog-strip.d.ts +74 -0
- package/dist/landing/changelog-strip.js +201 -0
- package/dist/{patterns → landing}/check-row.js +5 -7
- package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
- package/dist/{patterns → landing}/closing-cta.js +8 -8
- package/dist/landing/code-stage.d.ts +93 -0
- package/dist/landing/code-stage.js +434 -0
- package/dist/landing/crosshair.d.ts +44 -0
- package/dist/landing/crosshair.js +48 -0
- package/dist/landing/curriculum.d.ts +79 -0
- package/dist/landing/curriculum.js +194 -0
- package/dist/landing/drawn-chart.d.ts +74 -0
- package/dist/landing/drawn-chart.js +377 -0
- package/dist/landing/event-ticker.d.ts +71 -0
- package/dist/landing/event-ticker.js +331 -0
- package/dist/landing/fan-out-diagram.d.ts +70 -0
- package/dist/landing/fan-out-diagram.js +481 -0
- package/dist/{patterns → landing}/faq-band.d.ts +5 -5
- package/dist/{patterns → landing}/faq-band.js +13 -14
- package/dist/landing/feature-band.d.ts +108 -0
- package/dist/landing/feature-band.js +67 -0
- package/dist/landing/feature.d.ts +148 -0
- package/dist/landing/feature.js +219 -0
- package/dist/landing/flow-diagram.d.ts +62 -0
- package/dist/landing/flow-diagram.js +240 -0
- package/dist/{patterns → landing}/icon-well.d.ts +17 -7
- package/dist/landing/icon-well.js +31 -0
- package/dist/landing/index.d.ts +52 -0
- package/dist/landing/index.js +52 -0
- package/dist/{patterns → landing}/install-tabs.js +4 -5
- package/dist/landing/landing-header.d.ts +103 -0
- package/dist/landing/landing-header.js +110 -0
- package/dist/landing/landing-hero.d.ts +119 -0
- package/dist/landing/landing-hero.js +172 -0
- package/dist/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
- package/dist/landing/landing-section.js +183 -0
- package/dist/landing/logo-cloud.d.ts +56 -0
- package/dist/landing/logo-cloud.js +160 -0
- package/dist/landing/logo-sentence.d.ts +38 -0
- package/dist/landing/logo-sentence.js +51 -0
- package/dist/landing/marquee.d.ts +44 -0
- package/dist/landing/marquee.js +97 -0
- package/dist/landing/motion-loop.d.ts +43 -0
- package/dist/landing/motion-loop.js +42 -0
- package/dist/landing/pricing-band.d.ts +94 -0
- package/dist/landing/pricing-band.js +151 -0
- package/dist/landing/product-frame.d.ts +108 -0
- package/dist/landing/product-frame.js +202 -0
- package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
- package/dist/{patterns → landing}/proof-strip.js +3 -3
- package/dist/landing/rails.d.ts +45 -0
- package/dist/landing/rails.js +69 -0
- package/dist/landing/rotating-text.d.ts +44 -0
- package/dist/landing/rotating-text.js +67 -0
- package/dist/landing/segmented-stage.d.ts +75 -0
- package/dist/landing/segmented-stage.js +141 -0
- package/dist/landing/sequence-diagram.d.ts +65 -0
- package/dist/landing/sequence-diagram.js +348 -0
- package/dist/landing/site-footer.d.ts +100 -0
- package/dist/landing/site-footer.js +274 -0
- package/dist/landing/site-header.d.ts +126 -0
- package/dist/landing/site-header.js +595 -0
- package/dist/{components → landing}/split.d.ts +12 -5
- package/dist/{components → landing}/split.js +26 -18
- package/dist/landing/sponsor-wall.d.ts +81 -0
- package/dist/landing/sponsor-wall.js +241 -0
- package/dist/{components → landing}/stat-strip.d.ts +31 -7
- package/dist/landing/stat-strip.js +105 -0
- package/dist/landing/step-list.d.ts +73 -0
- package/dist/landing/step-list.js +182 -0
- package/dist/landing/styles/card-grid.d.ts +115 -0
- package/dist/landing/styles/card-grid.js +295 -0
- package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
- package/dist/landing/tabbed-stage.js +233 -0
- package/dist/landing/testimonial-band.d.ts +110 -0
- package/dist/landing/testimonial-band.js +164 -0
- package/dist/landing/typed-terminal.d.ts +62 -0
- package/dist/landing/typed-terminal.js +233 -0
- package/dist/landing/utils/pause-toggle.d.ts +37 -0
- package/dist/landing/utils/pause-toggle.js +71 -0
- package/dist/mixins/confirm-phrase.d.ts +19 -0
- package/dist/mixins/confirm-phrase.js +56 -0
- package/dist/mixins/copy-to-clipboard.d.ts +6 -0
- package/dist/mixins/copy-to-clipboard.js +17 -1
- package/dist/mixins/dialog-dismiss.d.ts +21 -0
- package/dist/mixins/dialog-dismiss.js +62 -0
- package/dist/mixins/index.d.ts +4 -15
- package/dist/mixins/index.js +4 -15
- package/dist/mixins/viewer-time.d.ts +20 -0
- package/dist/mixins/viewer-time.js +40 -0
- package/dist/styles/index.d.ts +3 -5
- package/dist/styles/index.js +3 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/segmented-control.d.ts +49 -0
- package/dist/styles/segmented-control.js +71 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/test/table.d.ts +65 -0
- package/dist/test/table.js +108 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +2 -5
- package/dist/utils/index.js +2 -5
- package/dist/utils/relative-time.d.ts +44 -0
- package/dist/utils/relative-time.js +69 -0
- package/package.json +16 -6
- package/src/theme.css +87 -22
- package/dist/components/empty.d.ts +0 -91
- package/dist/components/empty.js +0 -151
- package/dist/components/feature.d.ts +0 -102
- package/dist/components/feature.js +0 -150
- package/dist/components/logo-cloud.d.ts +0 -42
- package/dist/components/logo-cloud.js +0 -41
- package/dist/components/marketing-header.d.ts +0 -71
- package/dist/components/marketing-header.js +0 -81
- package/dist/components/marketing-section.js +0 -117
- package/dist/components/skeleton.d.ts +0 -36
- package/dist/components/skeleton.js +0 -38
- package/dist/components/stat-strip.js +0 -65
- package/dist/components/table.d.ts +0 -152
- package/dist/components/table.js +0 -238
- package/dist/patterns/accent-text.d.ts +0 -30
- package/dist/patterns/accent-text.js +0 -17
- package/dist/patterns/announcement-chip.d.ts +0 -41
- package/dist/patterns/announcement-chip.js +0 -49
- package/dist/patterns/bento.d.ts +0 -68
- package/dist/patterns/bento.js +0 -94
- package/dist/patterns/code-stage.d.ts +0 -63
- package/dist/patterns/code-stage.js +0 -82
- package/dist/patterns/feature-band.d.ts +0 -85
- package/dist/patterns/feature-band.js +0 -50
- package/dist/patterns/icon-well.js +0 -38
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.js +0 -23
- package/dist/patterns/landing-hero.d.ts +0 -93
- package/dist/patterns/landing-hero.js +0 -126
- package/dist/patterns/product-frame.d.ts +0 -60
- package/dist/patterns/product-frame.js +0 -70
- package/dist/patterns/step-list.d.ts +0 -47
- package/dist/patterns/step-list.js +0 -85
- package/dist/patterns/tabbed-stage.js +0 -77
- package/dist/styles/marketing.d.ts +0 -120
- package/dist/styles/marketing.js +0 -225
- package/dist/utils/semantic-color-panel.d.ts +0 -35
- package/dist/utils/semantic-color-panel.js +0 -28
- /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
- /package/dist/{components → app}/drop-indicator.d.ts +0 -0
- /package/dist/{components → app}/file-trigger.d.ts +0 -0
- /package/dist/{components → app}/menubar.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
- /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
- /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
- /package/dist/{components → app}/resizable.d.ts +0 -0
- /package/dist/{components → app}/shortcut-list.d.ts +0 -0
- /package/dist/{styles → app/styles}/chart-palette.js +0 -0
- /package/dist/{styles → app/styles}/graphic-host.js +0 -0
- /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
- /package/dist/{components → app}/toolbar.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
- /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
- /package/dist/{components → chat}/bubble.d.ts +0 -0
- /package/dist/{components → chat}/marker.d.ts +0 -0
- /package/dist/{components → chat}/message.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
- /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
- /package/dist/{components → color}/color-area.d.ts +0 -0
- /package/dist/{components → color}/color-field.d.ts +0 -0
- /package/dist/{components → color}/color-slider.d.ts +0 -0
- /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
- /package/dist/{components → color}/color-swatch.d.ts +0 -0
- /package/dist/{components → color}/color-wheel.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
- /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
- /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
- /package/dist/{patterns → landing}/check-row.d.ts +0 -0
- /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
|
2
2
|
import { iife } from "@sdxc/iife";
|
|
3
3
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
4
4
|
import { rounded, transition } from "@sdxc/u/effects";
|
|
5
|
-
import { raw } from "@sdxc/u/general";
|
|
5
|
+
import { raw, mergeMix } from "@sdxc/u/general";
|
|
6
6
|
import { basis, block, container, flex, flexCol, gap, grow, hstack, items, justify, relative, shrink, vstack, } from "@sdxc/u/layout";
|
|
7
7
|
import { overflow, overflowX } from "@sdxc/u/overflow";
|
|
8
8
|
import { media } from "@sdxc/u/responsive";
|
|
@@ -12,7 +12,7 @@ import { text, textAlign, truncate, weight } from "@sdxc/u/typography";
|
|
|
12
12
|
import { attrs } from "remix/component";
|
|
13
13
|
import { shimmer } from "../animations/keyframes.js";
|
|
14
14
|
import { scrollFade } from "../animations/scroll.js";
|
|
15
|
-
import { Button } from "
|
|
15
|
+
import { Button } from "../components/button.js";
|
|
16
16
|
const DEFAULT_STATE = "idle";
|
|
17
17
|
/**
|
|
18
18
|
* Named container {@link Attachment} declares on its own host, so
|
|
@@ -74,7 +74,7 @@ export function Attachment(handle) {
|
|
|
74
74
|
let { state, children, mix, ...rest } = handle.props;
|
|
75
75
|
let resolvedState = state ?? DEFAULT_STATE;
|
|
76
76
|
let isBusy = resolvedState === "uploading" || resolvedState === "processing";
|
|
77
|
-
return (_jsx("div", { ...rest, "data-slot": "attachment", "data-state": resolvedState, "aria-busy": isBusy ? "true" : undefined, mix: [
|
|
77
|
+
return (_jsx("div", { ...rest, "data-slot": "attachment", "data-state": resolvedState, "aria-busy": isBusy ? "true" : undefined, mix: mergeMix([
|
|
78
78
|
relative(),
|
|
79
79
|
rounded("lg"),
|
|
80
80
|
border({ width: 1 }),
|
|
@@ -89,8 +89,7 @@ export function Attachment(handle) {
|
|
|
89
89
|
bg("danger.tint"),
|
|
90
90
|
fg("danger.emphasis"),
|
|
91
91
|
]),
|
|
92
|
-
|
|
93
|
-
], children: _jsx("div", { "data-slot": "body", mix: [
|
|
92
|
+
], mix), children: _jsx("div", { "data-slot": "body", mix: [
|
|
94
93
|
hstack({ gap: 3, align: "center" }),
|
|
95
94
|
when(NARROW_CONTAINER_QUERY, [flexCol(), items("stretch")]),
|
|
96
95
|
], children: children }) }));
|
|
@@ -111,7 +110,7 @@ export function Attachment(handle) {
|
|
|
111
110
|
Attachment.Media = function AttachmentMedia(handle) {
|
|
112
111
|
return () => {
|
|
113
112
|
let { children, mix, ...rest } = handle.props;
|
|
114
|
-
return (_jsx("div", { ...rest, "data-slot": "media", mix: [
|
|
113
|
+
return (_jsx("div", { ...rest, "data-slot": "media", mix: mergeMix([
|
|
115
114
|
flex(),
|
|
116
115
|
shrink(0),
|
|
117
116
|
items("center"),
|
|
@@ -125,8 +124,7 @@ Attachment.Media = function AttachmentMedia(handle) {
|
|
|
125
124
|
when("& > svg", [is(5), bs(5)]),
|
|
126
125
|
when("& > img", [is("full"), bs("full"), fit("cover")]),
|
|
127
126
|
when(NARROW_CONTAINER_QUERY, [is("full"), bs("auto"), aspect(4, 3), rounded("lg")]),
|
|
128
|
-
|
|
129
|
-
], children: children }));
|
|
127
|
+
], mix), children: children }));
|
|
130
128
|
};
|
|
131
129
|
};
|
|
132
130
|
/**
|
|
@@ -145,15 +143,14 @@ Attachment.Media = function AttachmentMedia(handle) {
|
|
|
145
143
|
Attachment.Content = function AttachmentContent(handle) {
|
|
146
144
|
return () => {
|
|
147
145
|
let { children, mix, ...rest } = handle.props;
|
|
148
|
-
return (_jsx("div", { ...rest, "data-slot": "content", mix: [
|
|
146
|
+
return (_jsx("div", { ...rest, "data-slot": "content", mix: mergeMix([
|
|
149
147
|
vstack({ gap: 0.5 }),
|
|
150
148
|
minIs(0),
|
|
151
149
|
grow(),
|
|
152
150
|
shrink(1),
|
|
153
151
|
basis("0%"),
|
|
154
152
|
when(NARROW_CONTAINER_QUERY, textAlign("center")),
|
|
155
|
-
|
|
156
|
-
], children: children }));
|
|
153
|
+
], mix), children: children }));
|
|
157
154
|
};
|
|
158
155
|
};
|
|
159
156
|
/**
|
|
@@ -171,7 +168,7 @@ Attachment.Content = function AttachmentContent(handle) {
|
|
|
171
168
|
Attachment.Title = function AttachmentTitle(handle) {
|
|
172
169
|
return () => {
|
|
173
170
|
let { state, children, mix, ...rest } = handle.props;
|
|
174
|
-
return (_jsx("p", { ...rest, "data-slot": "title", "data-state": state, mix: [
|
|
171
|
+
return (_jsx("p", { ...rest, "data-slot": "title", "data-state": state, mix: mergeMix([
|
|
175
172
|
weight("semibold"),
|
|
176
173
|
truncate(),
|
|
177
174
|
text("sm"),
|
|
@@ -181,8 +178,7 @@ Attachment.Title = function AttachmentTitle(handle) {
|
|
|
181
178
|
* as a loading cue and would leave every finished upload unnamed.
|
|
182
179
|
*/
|
|
183
180
|
shimmer({ when: TITLE_SHIMMER_WHEN, outsideGate: "visible" }),
|
|
184
|
-
|
|
185
|
-
], children: children }));
|
|
181
|
+
], mix), children: children }));
|
|
186
182
|
};
|
|
187
183
|
};
|
|
188
184
|
/**
|
|
@@ -200,7 +196,7 @@ Attachment.Title = function AttachmentTitle(handle) {
|
|
|
200
196
|
Attachment.Description = function AttachmentDescription(handle) {
|
|
201
197
|
return () => {
|
|
202
198
|
let { children, mix, ...rest } = handle.props;
|
|
203
|
-
return (_jsx("p", { ...rest, "data-slot": "description", mix: [truncate(), fg("neutral.muted"), text("xs"), mix
|
|
199
|
+
return (_jsx("p", { ...rest, "data-slot": "description", mix: mergeMix([truncate(), fg("neutral.muted"), text("xs")], mix), children: children }));
|
|
204
200
|
};
|
|
205
201
|
};
|
|
206
202
|
/**
|
|
@@ -219,7 +215,7 @@ Attachment.Description = function AttachmentDescription(handle) {
|
|
|
219
215
|
Attachment.Actions = function AttachmentActions(handle) {
|
|
220
216
|
return () => {
|
|
221
217
|
let { children, mix, ...rest } = handle.props;
|
|
222
|
-
return (_jsx("div", { ...rest, "data-slot": "actions", mix: [flex(), shrink(0), items("center"), gap(1), mix
|
|
218
|
+
return (_jsx("div", { ...rest, "data-slot": "actions", mix: mergeMix([flex(), shrink(0), items("center"), gap(1)], mix), children: children }));
|
|
223
219
|
};
|
|
224
220
|
};
|
|
225
221
|
/**
|
|
@@ -241,7 +237,7 @@ Attachment.Actions = function AttachmentActions(handle) {
|
|
|
241
237
|
Attachment.Action = function AttachmentAction(handle) {
|
|
242
238
|
return () => {
|
|
243
239
|
let { color, variant, size, mix, ...rest } = handle.props;
|
|
244
|
-
return (_jsx(Button, { color: color ?? DEFAULT_ACTION_COLOR, variant: variant ?? DEFAULT_ACTION_VARIANT, size: size ?? DEFAULT_ACTION_SIZE, ...rest, "data-slot": "action", mix:
|
|
240
|
+
return (_jsx(Button, { color: color ?? DEFAULT_ACTION_COLOR, variant: variant ?? DEFAULT_ACTION_VARIANT, size: size ?? DEFAULT_ACTION_SIZE, ...rest, "data-slot": "action", mix: mergeMix(shrink(0), mix) }));
|
|
245
241
|
};
|
|
246
242
|
};
|
|
247
243
|
/**
|
|
@@ -285,15 +281,14 @@ Attachment.Trigger = function AttachmentTrigger(handle) {
|
|
|
285
281
|
if (import.meta.env?.DEV && !isConfigured) {
|
|
286
282
|
console.warn('Attachment.Trigger: rendered with neither "href" nor "commandfor" — nothing will happen once `attachmentTrigger()` handles an activation.');
|
|
287
283
|
}
|
|
288
|
-
return (_jsx("div", { ...rest, role: resolvedRole, tabIndex: resolvedTabIndex, "data-slot": "trigger", mix: [
|
|
284
|
+
return (_jsx("div", { ...rest, role: resolvedRole, tabIndex: resolvedTabIndex, "data-slot": "trigger", mix: mergeMix([
|
|
289
285
|
attrs({ href, commandfor, command, target }),
|
|
290
286
|
relative(),
|
|
291
287
|
block(),
|
|
292
288
|
rounded("inherit"),
|
|
293
289
|
when("&[role]:hover", bg("neutral.bg-tint-hover")),
|
|
294
290
|
when("&[role]:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
295
|
-
|
|
296
|
-
], children: children }));
|
|
291
|
+
], mix), children: children }));
|
|
297
292
|
};
|
|
298
293
|
};
|
|
299
294
|
/**
|
|
@@ -313,7 +308,7 @@ Attachment.Trigger = function AttachmentTrigger(handle) {
|
|
|
313
308
|
Attachment.Group = function AttachmentGroup(handle) {
|
|
314
309
|
return () => {
|
|
315
310
|
let { children, mix, ...rest } = handle.props;
|
|
316
|
-
return (_jsx("div", { ...rest, "data-slot": "group", mix: [
|
|
311
|
+
return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix([
|
|
317
312
|
attrs({ tabIndex: DEFAULT_GROUP_TAB_INDEX }),
|
|
318
313
|
flex(),
|
|
319
314
|
gap(3),
|
|
@@ -327,7 +322,6 @@ Attachment.Group = function AttachmentGroup(handle) {
|
|
|
327
322
|
when("& > *", [shrink(0), raw({ scrollSnapAlign: "start" })]),
|
|
328
323
|
media("(prefers-reduced-motion: no-preference)", raw({ scrollBehavior: "smooth" })),
|
|
329
324
|
scrollFade({ axis: "inline", size: GROUP_SCROLL_FADE_SIZE }),
|
|
330
|
-
|
|
331
|
-
], children: children }));
|
|
325
|
+
], mix), children: children }));
|
|
332
326
|
};
|
|
333
327
|
};
|
|
@@ -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
|
const DEFAULT_PINNED = true;
|
|
13
13
|
const DEFAULT_ALIGN = "start";
|
|
14
14
|
const DEFAULT_SMOOTH = true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw, vars } from "@sdxc/u/general";
|
|
4
|
+
import { raw, vars, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { block, flex, flexWrap, gap, items, vstack } from "@sdxc/u/layout";
|
|
6
6
|
import { maxIs, mie, mis, pb, pbe, pi, width } from "@sdxc/u/size";
|
|
7
7
|
import { data, when } from "@sdxc/u/state";
|
|
@@ -45,7 +45,7 @@ export function Bubble(handle) {
|
|
|
45
45
|
let { variant, align, children, mix, ...rest } = handle.props;
|
|
46
46
|
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
47
47
|
let resolvedAlign = align ?? DEFAULT_ALIGN;
|
|
48
|
-
return (_jsx("div", { ...rest, "data-slot": "bubble", "data-variant": resolvedVariant, "data-align": resolvedAlign, mix: [
|
|
48
|
+
return (_jsx("div", { ...rest, "data-slot": "bubble", "data-variant": resolvedVariant, "data-align": resolvedAlign, mix: mergeMix([
|
|
49
49
|
block(),
|
|
50
50
|
rounded("xl"),
|
|
51
51
|
border({ width: 1 }),
|
|
@@ -63,7 +63,11 @@ export function Bubble(handle) {
|
|
|
63
63
|
]),
|
|
64
64
|
data("variant", "default", [bg("brand.solid"), fg("brand.onSolid")]),
|
|
65
65
|
data("variant", "secondary", [bg("neutral.solid"), fg("neutral.onSolid")]),
|
|
66
|
-
data("variant", "muted", [
|
|
66
|
+
data("variant", "muted", [
|
|
67
|
+
bg("neutral.tint"),
|
|
68
|
+
fg("neutral.emphasis"),
|
|
69
|
+
border("neutral"),
|
|
70
|
+
]),
|
|
67
71
|
data("variant", "tinted", [bg("brand.tint"), fg("brand.emphasis"), border("brand")]),
|
|
68
72
|
data("variant", "outline", [
|
|
69
73
|
fg("neutral.emphasis"),
|
|
@@ -76,8 +80,7 @@ export function Bubble(handle) {
|
|
|
76
80
|
border("transparent"),
|
|
77
81
|
]),
|
|
78
82
|
data("variant", "destructive", [bg("danger.solid"), fg("danger.onSolid")]),
|
|
79
|
-
|
|
80
|
-
], children: children }));
|
|
83
|
+
], mix), children: children }));
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
/**
|
|
@@ -111,7 +114,7 @@ export function Bubble(handle) {
|
|
|
111
114
|
Bubble.Content = function BubbleContent(handle) {
|
|
112
115
|
return () => {
|
|
113
116
|
let { children, mix, ...rest } = handle.props;
|
|
114
|
-
return (_jsx("div", { ...rest, "data-slot": "content", mix: [
|
|
117
|
+
return (_jsx("div", { ...rest, "data-slot": "content", mix: mergeMix([
|
|
115
118
|
pb(2.5),
|
|
116
119
|
pi(3.5),
|
|
117
120
|
raw({
|
|
@@ -121,8 +124,7 @@ Bubble.Content = function BubbleContent(handle) {
|
|
|
121
124
|
}),
|
|
122
125
|
wordBreak("break-word"),
|
|
123
126
|
pretty(),
|
|
124
|
-
|
|
125
|
-
], children: children }));
|
|
127
|
+
], mix), children: children }));
|
|
126
128
|
};
|
|
127
129
|
};
|
|
128
130
|
/**
|
|
@@ -157,7 +159,7 @@ Bubble.Content = function BubbleContent(handle) {
|
|
|
157
159
|
Bubble.Reactions = function BubbleReactions(handle) {
|
|
158
160
|
return () => {
|
|
159
161
|
let { children, mix, ...rest } = handle.props;
|
|
160
|
-
return (_jsx("div", { ...rest, "data-slot": "reactions", mix: [
|
|
162
|
+
return (_jsx("div", { ...rest, "data-slot": "reactions", mix: mergeMix([
|
|
161
163
|
attrs({ role: DEFAULT_REACTIONS_ROLE }),
|
|
162
164
|
flex(),
|
|
163
165
|
flexWrap("wrap"),
|
|
@@ -171,8 +173,7 @@ Bubble.Reactions = function BubbleReactions(handle) {
|
|
|
171
173
|
pi(3.5),
|
|
172
174
|
pbe(2.5),
|
|
173
175
|
raw({ justifyContent: "var(--ui-bubble-reactions-justify, flex-start)" }),
|
|
174
|
-
|
|
175
|
-
], children: children }));
|
|
176
|
+
], mix), children: children }));
|
|
176
177
|
};
|
|
177
178
|
};
|
|
178
179
|
/**
|
|
@@ -191,7 +192,7 @@ Bubble.Reactions = function BubbleReactions(handle) {
|
|
|
191
192
|
Bubble.Group = function BubbleGroup(handle) {
|
|
192
193
|
return () => {
|
|
193
194
|
let { children, mix, ...rest } = handle.props;
|
|
194
|
-
return (_jsx("div", { ...rest, "data-slot": "group", mix: [
|
|
195
|
+
return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix([
|
|
195
196
|
vstack({ gap: 0.5 }),
|
|
196
197
|
when('& > [data-slot="bubble"]:not(:first-child)', [
|
|
197
198
|
raw({
|
|
@@ -205,7 +206,6 @@ Bubble.Group = function BubbleGroup(handle) {
|
|
|
205
206
|
borderEndEndRadius: "var(--ui-radius-xs, 0.125rem)",
|
|
206
207
|
}),
|
|
207
208
|
]),
|
|
208
|
-
|
|
209
|
-
], children: children }));
|
|
209
|
+
], mix), children: children }));
|
|
210
210
|
};
|
|
211
211
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/chat`: the message log, its rows, bubbles, markers and
|
|
3
|
+
* attachments, with the helpers only they use. Each component also imports on its own
|
|
4
|
+
* as `@sdxc/ui/chat/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./attachment.js";
|
|
10
|
+
export * from "./behaviors/scroll-follow-model.js";
|
|
11
|
+
export * from "./bubble.js";
|
|
12
|
+
export * from "./marker.js";
|
|
13
|
+
export * from "./message-scroller.js";
|
|
14
|
+
export * from "./message.js";
|
|
15
|
+
export * from "./mixins/attachment-trigger.js";
|
|
16
|
+
export * from "./mixins/message-follow.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barrel for `@sdxc/ui/chat`: the message log, its rows, bubbles, markers and
|
|
3
|
+
* attachments, with the helpers only they use. Each component also imports on its own
|
|
4
|
+
* as `@sdxc/ui/chat/<module>`.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
export * from "./attachment.js";
|
|
10
|
+
export * from "./behaviors/scroll-follow-model.js";
|
|
11
|
+
export * from "./bubble.js";
|
|
12
|
+
export * from "./marker.js";
|
|
13
|
+
export * from "./message-scroller.js";
|
|
14
|
+
export * from "./message.js";
|
|
15
|
+
export * from "./mixins/attachment-trigger.js";
|
|
16
|
+
export * from "./mixins/message-follow.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { pseudoContent } from "@sdxc/u/general";
|
|
4
|
+
import { pseudoContent, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { basis, center, gap, grow, inlineFlex, items, shrink } from "@sdxc/u/layout";
|
|
6
6
|
import { bs, is, minIs, pb, pi } from "@sdxc/u/size";
|
|
7
7
|
import { data, when } from "@sdxc/u/state";
|
|
@@ -60,7 +60,7 @@ export function Marker(handle) {
|
|
|
60
60
|
let { variant, color, children, mix, ...rest } = handle.props;
|
|
61
61
|
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
62
62
|
let resolvedColor = color ?? DEFAULT_COLOR;
|
|
63
|
-
return (_jsx("div", { "data-variant": resolvedVariant, "data-color": resolvedColor, ...rest, mix: [
|
|
63
|
+
return (_jsx("div", { "data-variant": resolvedVariant, "data-color": resolvedColor, ...rest, mix: mergeMix([
|
|
64
64
|
resolvedVariant === "separator"
|
|
65
65
|
? attrs({
|
|
66
66
|
role: DEFAULT_SEPARATOR_ROLE,
|
|
@@ -111,8 +111,7 @@ export function Marker(handle) {
|
|
|
111
111
|
bs("var(--ui-separator-thickness, 1px)"),
|
|
112
112
|
bg("neutral.border"),
|
|
113
113
|
])),
|
|
114
|
-
|
|
115
|
-
], children: children }));
|
|
114
|
+
], mix), children: children }));
|
|
116
115
|
};
|
|
117
116
|
}
|
|
118
117
|
/**
|
|
@@ -132,15 +131,14 @@ export function Marker(handle) {
|
|
|
132
131
|
Marker.Icon = function MarkerIcon(handle) {
|
|
133
132
|
return () => {
|
|
134
133
|
let { children, mix, ...rest } = handle.props;
|
|
135
|
-
return (_jsx("span", { ...rest, mix: [
|
|
134
|
+
return (_jsx("span", { ...rest, mix: mergeMix([
|
|
136
135
|
attrs({ "aria-hidden": DEFAULT_ICON_ARIA_HIDDEN }),
|
|
137
136
|
inlineFlex(),
|
|
138
137
|
shrink(),
|
|
139
138
|
items("center"),
|
|
140
139
|
fg("currentcolor"),
|
|
141
140
|
when("& > svg", [is("1em"), bs("1em")]),
|
|
142
|
-
|
|
143
|
-
], children: children }));
|
|
141
|
+
], mix), children: children }));
|
|
144
142
|
};
|
|
145
143
|
};
|
|
146
144
|
/**
|
|
@@ -158,6 +156,6 @@ Marker.Icon = function MarkerIcon(handle) {
|
|
|
158
156
|
Marker.Content = function MarkerContent(handle) {
|
|
159
157
|
return () => {
|
|
160
158
|
let { mix, ...rest } = handle.props;
|
|
161
|
-
return _jsx("span", { ...rest, mix:
|
|
159
|
+
return _jsx("span", { ...rest, mix: mergeMix(minIs(0), mix) });
|
|
162
160
|
};
|
|
163
161
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @copyright Sergio Xalambrí 2026
|
|
12
12
|
*/
|
|
13
13
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
14
|
-
import { Button } from "
|
|
14
|
+
import { Button } from "../components/button.js";
|
|
15
15
|
/**
|
|
16
16
|
* Prop types for {@link MessageScroller} and its compound parts.
|
|
17
17
|
*/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { border } from "@sdxc/u/color";
|
|
3
3
|
import { rounded, shadow } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
4
|
+
import { raw, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { absolute, container, flex, flexCol, gap, insIe, insIs, inset, justify, relative, } from "@sdxc/u/layout";
|
|
6
6
|
import { pb, pi } from "@sdxc/u/size";
|
|
7
7
|
import { z } from "@sdxc/u/stacking";
|
|
8
8
|
import { when } from "@sdxc/u/state";
|
|
9
9
|
import { translateProperty } from "@sdxc/u/transform";
|
|
10
10
|
import { attrs } from "remix/component";
|
|
11
|
-
import { Button } from "
|
|
12
|
-
import { ScrollArea } from "
|
|
11
|
+
import { Button } from "../components/button.js";
|
|
12
|
+
import { ScrollArea } from "../components/scroll-area.js";
|
|
13
13
|
/**
|
|
14
14
|
* Named container {@link MessageScroller} declares on its own host, so
|
|
15
15
|
* {@link MessageScroller.Button} can size its own placement to the
|
|
@@ -73,13 +73,12 @@ const DEFAULT_BUTTON_HIDDEN = true;
|
|
|
73
73
|
export function MessageScroller(handle) {
|
|
74
74
|
return () => {
|
|
75
75
|
let { children, mix, ...rest } = handle.props;
|
|
76
|
-
return (_jsx("div", { ...rest, "data-slot": "message-scroller", mix: [
|
|
76
|
+
return (_jsx("div", { ...rest, "data-slot": "message-scroller", mix: mergeMix([
|
|
77
77
|
rounded("lg"),
|
|
78
78
|
border({ color: "neutral", width: 1 }),
|
|
79
79
|
relative(),
|
|
80
80
|
container(CONTAINER_NAME),
|
|
81
|
-
|
|
82
|
-
], children: children }));
|
|
81
|
+
], mix), children: children }));
|
|
83
82
|
};
|
|
84
83
|
}
|
|
85
84
|
/**
|
|
@@ -115,15 +114,14 @@ MessageScroller.Viewport = function MessageScrollerViewport(handle) {
|
|
|
115
114
|
MessageScroller.Content = function MessageScrollerContent(handle) {
|
|
116
115
|
return () => {
|
|
117
116
|
let { children, mix, ...rest } = handle.props;
|
|
118
|
-
return (_jsx("div", { ...rest, "data-slot": "content", mix: [
|
|
117
|
+
return (_jsx("div", { ...rest, "data-slot": "content", mix: mergeMix([
|
|
119
118
|
attrs({ role: DEFAULT_CONTENT_ROLE, "aria-relevant": DEFAULT_CONTENT_ARIA_RELEVANT }),
|
|
120
119
|
flex(),
|
|
121
120
|
flexCol(),
|
|
122
121
|
gap(4),
|
|
123
122
|
pb(4),
|
|
124
123
|
pi(4),
|
|
125
|
-
|
|
126
|
-
], children: children }));
|
|
124
|
+
], mix), children: children }));
|
|
127
125
|
};
|
|
128
126
|
};
|
|
129
127
|
/**
|
|
@@ -144,12 +142,9 @@ MessageScroller.Item = function MessageScrollerItem(handle) {
|
|
|
144
142
|
if (import.meta.env?.DEV && !messageId) {
|
|
145
143
|
console.warn('MessageScroller.Item: needs a "messageId" — a scroll-follow behavior matches rows against this instead of parsing rendered children.');
|
|
146
144
|
}
|
|
147
|
-
return (_jsx("div", { ...rest, "data-slot": "item", "data-message-id": messageId, "data-scroll-anchor": scrollAnchor || undefined, mix:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}),
|
|
151
|
-
mix,
|
|
152
|
-
], children: children }));
|
|
145
|
+
return (_jsx("div", { ...rest, "data-slot": "item", "data-message-id": messageId, "data-scroll-anchor": scrollAnchor || undefined, mix: mergeMix(raw({
|
|
146
|
+
scrollMarginBlockStart: "var(--ui-message-scroller-anchor-offset, 0px)",
|
|
147
|
+
}), mix), children: children }));
|
|
153
148
|
};
|
|
154
149
|
};
|
|
155
150
|
/**
|
|
@@ -167,7 +162,7 @@ MessageScroller.Item = function MessageScrollerItem(handle) {
|
|
|
167
162
|
MessageScroller.Button = function MessageScrollerButton(handle) {
|
|
168
163
|
return () => {
|
|
169
164
|
let { hidden, color, variant, size, mix, ...rest } = handle.props;
|
|
170
|
-
return (_jsx(Button, { ...rest, type: "button", color: color ?? DEFAULT_BUTTON_COLOR, variant: variant ?? DEFAULT_BUTTON_VARIANT, size: size ?? DEFAULT_BUTTON_SIZE, hidden: hidden ?? DEFAULT_BUTTON_HIDDEN, "data-slot": "jump-button", mix: [
|
|
165
|
+
return (_jsx(Button, { ...rest, type: "button", color: color ?? DEFAULT_BUTTON_COLOR, variant: variant ?? DEFAULT_BUTTON_VARIANT, size: size ?? DEFAULT_BUTTON_SIZE, hidden: hidden ?? DEFAULT_BUTTON_HIDDEN, "data-slot": "jump-button", mix: mergeMix([
|
|
171
166
|
z(1),
|
|
172
167
|
absolute(),
|
|
173
168
|
inset("auto", "auto", "1rem", "50%"),
|
|
@@ -185,7 +180,6 @@ MessageScroller.Button = function MessageScrollerButton(handle) {
|
|
|
185
180
|
insIe("1rem"),
|
|
186
181
|
translateProperty("0 0"),
|
|
187
182
|
]),
|
|
188
|
-
|
|
189
|
-
] }));
|
|
183
|
+
], mix) }));
|
|
190
184
|
};
|
|
191
185
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
3
4
|
import { container, flex, flexWrap, gap, grid, gridArea, gridTemplate, hstack, items, justify, relative, self, vstack, } from "@sdxc/u/layout";
|
|
4
5
|
import { at } from "@sdxc/u/responsive";
|
|
5
6
|
import { maxIs, minIs } from "@sdxc/u/size";
|
|
@@ -51,7 +52,7 @@ const CONTAINER_NAME = "ui-message";
|
|
|
51
52
|
export function Message(handle) {
|
|
52
53
|
return () => {
|
|
53
54
|
let { children, mix, ...rest } = handle.props;
|
|
54
|
-
return (_jsx("article", { ...rest, "data-slot": "message", mix: [
|
|
55
|
+
return (_jsx("article", { ...rest, "data-slot": "message", mix: mergeMix([
|
|
55
56
|
relative(),
|
|
56
57
|
grid(),
|
|
57
58
|
gap("var(--ui-message-row-gap, 0.25rem)", "var(--ui-message-gap, 0.75rem)"),
|
|
@@ -64,8 +65,7 @@ export function Message(handle) {
|
|
|
64
65
|
when('& > [data-slot="header"]', gridArea("header")),
|
|
65
66
|
when('& > [data-slot="content"]', gridArea("content")),
|
|
66
67
|
when('& > [data-slot="footer"]', gridArea("footer")),
|
|
67
|
-
|
|
68
|
-
], children: children }));
|
|
68
|
+
], mix), children: children }));
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
@@ -86,7 +86,7 @@ export function Message(handle) {
|
|
|
86
86
|
Message.Avatar = function MessageAvatar(handle) {
|
|
87
87
|
return () => {
|
|
88
88
|
let { children, mix, ...rest } = handle.props;
|
|
89
|
-
return (_jsx("div", { ...rest, "data-slot": "avatar", mix:
|
|
89
|
+
return (_jsx("div", { ...rest, "data-slot": "avatar", mix: mergeMix(flex(), mix), children: children }));
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
@@ -105,7 +105,7 @@ Message.Avatar = function MessageAvatar(handle) {
|
|
|
105
105
|
Message.Header = function MessageHeader(handle) {
|
|
106
106
|
return () => {
|
|
107
107
|
let { children, mix, ...rest } = handle.props;
|
|
108
|
-
return (_jsx("header", { ...rest, "data-slot": "header", mix: [
|
|
108
|
+
return (_jsx("header", { ...rest, "data-slot": "header", mix: mergeMix([
|
|
109
109
|
flex(),
|
|
110
110
|
flexWrap("wrap"),
|
|
111
111
|
items("baseline"),
|
|
@@ -113,8 +113,7 @@ Message.Header = function MessageHeader(handle) {
|
|
|
113
113
|
when("& > :first-child", [fontSize("sm"), weight("semibold"), fg("neutral.emphasis")]),
|
|
114
114
|
when("& > :not(:first-child)", [fontSize("xs"), fg("neutral.muted"), tabularNums()]),
|
|
115
115
|
at("26rem", CONTAINER_NAME, [flexWrap("nowrap"), justify("between")]),
|
|
116
|
-
|
|
117
|
-
], children: children }));
|
|
116
|
+
], mix), children: children }));
|
|
118
117
|
};
|
|
119
118
|
};
|
|
120
119
|
/**
|
|
@@ -132,12 +131,11 @@ Message.Header = function MessageHeader(handle) {
|
|
|
132
131
|
Message.Content = function MessageContent(handle) {
|
|
133
132
|
return () => {
|
|
134
133
|
let { children, mix, ...rest } = handle.props;
|
|
135
|
-
return (_jsx("div", { ...rest, "data-slot": "content", mix: [
|
|
134
|
+
return (_jsx("div", { ...rest, "data-slot": "content", mix: mergeMix([
|
|
136
135
|
vstack({ gap: "0.375rem" }),
|
|
137
136
|
minIs("0"),
|
|
138
137
|
maxIs("var(--ui-message-content-max-size, 36rem)"),
|
|
139
|
-
|
|
140
|
-
], children: children }));
|
|
138
|
+
], mix), children: children }));
|
|
141
139
|
};
|
|
142
140
|
};
|
|
143
141
|
/**
|
|
@@ -165,7 +163,7 @@ Message.Content = function MessageContent(handle) {
|
|
|
165
163
|
Message.Footer = function MessageFooter(handle) {
|
|
166
164
|
return () => {
|
|
167
165
|
let { children, mix, ...rest } = handle.props;
|
|
168
|
-
return (_jsx("footer", { ...rest, "data-slot": "footer", mix:
|
|
166
|
+
return (_jsx("footer", { ...rest, "data-slot": "footer", mix: mergeMix(hstack({ align: "center", gap: "0.25rem" }), mix), children: children }));
|
|
169
167
|
};
|
|
170
168
|
};
|
|
171
169
|
/**
|
|
@@ -195,6 +193,6 @@ Message.Footer = function MessageFooter(handle) {
|
|
|
195
193
|
Message.Group = function MessageGroup(handle) {
|
|
196
194
|
return () => {
|
|
197
195
|
let { children, mix, ...rest } = handle.props;
|
|
198
|
-
return (_jsx("div", { ...rest, "data-slot": "group", mix:
|
|
196
|
+
return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix(vstack({ gap: "var(--ui-message-group-gap, 0.125rem)" }), mix), children: children }));
|
|
199
197
|
};
|
|
200
198
|
};
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* @copyright Sergio Xalambrí 2026
|
|
13
13
|
*/
|
|
14
14
|
import { createElement, createMixin, on } from "remix/component";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { whileLive } from "../../mixins/while-live.js";
|
|
16
|
+
import { prefersReducedMotion } from "../../utils/prefers-reduced-motion.js";
|
|
17
17
|
/**
|
|
18
18
|
* Attribute every conversational turn exposes itself on, its value the
|
|
19
19
|
* turn's stable id; `messageFollow()` reads it to find the anchor turn and
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, linearGradient, outline, outlineStyle } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, ringShadow, rounded, transition, transitionDuration } from "@sdxc/u/effects";
|
|
4
|
-
import { cursor, pointerEvents, raw } from "@sdxc/u/general";
|
|
4
|
+
import { cursor, pointerEvents, raw, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { absolute, appearance, inlineBlock, inset, relative } from "@sdxc/u/layout";
|
|
6
6
|
import { overflow } from "@sdxc/u/overflow";
|
|
7
7
|
import { media } from "@sdxc/u/responsive";
|
|
@@ -66,7 +66,7 @@ export function ColorArea(handle) {
|
|
|
66
66
|
saturationThumbId: `${handle.id}-saturation`,
|
|
67
67
|
valueThumbId: `${handle.id}-value`,
|
|
68
68
|
});
|
|
69
|
-
return (_jsx("div", { "data-slot": "area", ...rest, style: resolvedStyle, mix: [
|
|
69
|
+
return (_jsx("div", { "data-slot": "area", ...rest, style: resolvedStyle, mix: mergeMix([
|
|
70
70
|
attrs({ role: DEFAULT_ROLE }),
|
|
71
71
|
relative(),
|
|
72
72
|
inlineBlock(),
|
|
@@ -79,8 +79,7 @@ export function ColorArea(handle) {
|
|
|
79
79
|
image: `${linearGradient("to top", "black", "transparent")}, ${linearGradient("to right", "white", "transparent")}`,
|
|
80
80
|
}),
|
|
81
81
|
bg("hsl(var(--ui-color-area-hue, 0) 100% 50%)"),
|
|
82
|
-
|
|
83
|
-
] }));
|
|
82
|
+
], mix) }));
|
|
84
83
|
};
|
|
85
84
|
}
|
|
86
85
|
/**
|
|
@@ -100,7 +99,7 @@ ColorArea.SaturationThumb = function ColorAreaSaturationThumb(handle) {
|
|
|
100
99
|
let resolvedStep = step ?? DEFAULT_STEP;
|
|
101
100
|
let resolvedValue = value ?? defaultValue ?? context.saturation;
|
|
102
101
|
warnIfNoAccessibleLabel(handle.props, "ColorArea.SaturationThumb: this thumb needs an `aria-label` describing the saturation axis — assistive technology has no accessible name for it otherwise.");
|
|
103
|
-
return (_jsx("input", { ...rest, type: "range", id: id ?? context.saturationThumbId, min: min ?? DEFAULT_MIN, max: max ?? DEFAULT_MAX, step: resolvedStep, defaultValue: resolvedValue, mix: [
|
|
102
|
+
return (_jsx("input", { ...rest, type: "range", id: id ?? context.saturationThumbId, min: min ?? DEFAULT_MIN, max: max ?? DEFAULT_MAX, step: resolvedStep, defaultValue: resolvedValue, mix: mergeMix([
|
|
104
103
|
absolute(),
|
|
105
104
|
z(10),
|
|
106
105
|
is("full"),
|
|
@@ -162,8 +161,7 @@ ColorArea.SaturationThumb = function ColorAreaSaturationThumb(handle) {
|
|
|
162
161
|
when("&::-webkit-slider-thumb", transitionDuration("0s")),
|
|
163
162
|
when("&::-moz-range-thumb", transitionDuration("0s")),
|
|
164
163
|
]),
|
|
165
|
-
|
|
166
|
-
] }));
|
|
164
|
+
], mix) }));
|
|
167
165
|
};
|
|
168
166
|
};
|
|
169
167
|
/**
|
|
@@ -183,7 +181,7 @@ ColorArea.ValueThumb = function ColorAreaValueThumb(handle) {
|
|
|
183
181
|
let resolvedStep = step ?? DEFAULT_STEP;
|
|
184
182
|
let resolvedValue = value ?? defaultValue ?? context.value;
|
|
185
183
|
warnIfNoAccessibleLabel(handle.props, "ColorArea.ValueThumb: this thumb needs an `aria-label` describing the brightness axis — assistive technology has no accessible name for it otherwise.");
|
|
186
|
-
return (_jsx("input", { ...rest, type: "range", id: id ?? context.valueThumbId, min: min ?? DEFAULT_MIN, max: max ?? DEFAULT_MAX, step: resolvedStep, defaultValue: resolvedValue, "aria-orientation": "vertical", mix: [
|
|
184
|
+
return (_jsx("input", { ...rest, type: "range", id: id ?? context.valueThumbId, min: min ?? DEFAULT_MIN, max: max ?? DEFAULT_MAX, step: resolvedStep, defaultValue: resolvedValue, "aria-orientation": "vertical", mix: mergeMix([
|
|
187
185
|
absolute(),
|
|
188
186
|
z(10),
|
|
189
187
|
is("full"),
|
|
@@ -245,7 +243,6 @@ ColorArea.ValueThumb = function ColorAreaValueThumb(handle) {
|
|
|
245
243
|
when("&::-webkit-slider-thumb", transitionDuration("0s")),
|
|
246
244
|
when("&::-moz-range-thumb", transitionDuration("0s")),
|
|
247
245
|
]),
|
|
248
|
-
|
|
249
|
-
] }));
|
|
246
|
+
], mix) }));
|
|
250
247
|
};
|
|
251
248
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
2
3
|
import { spacer, hstack } from "@sdxc/u/layout";
|
|
3
4
|
import { minIs } from "@sdxc/u/size";
|
|
5
|
+
import { Description } from "../components/description.js";
|
|
6
|
+
import { FieldError } from "../components/field-error.js";
|
|
7
|
+
import { resolveFieldIssue } from "../components/form.js";
|
|
8
|
+
import { Input } from "../components/input.js";
|
|
9
|
+
import { Label } from "../components/label.js";
|
|
4
10
|
import { fieldStackLayout } from "../styles/field-stack-layout.js";
|
|
5
11
|
import { resolveFieldWiring } from "../utils/resolve-field-wiring.js";
|
|
6
12
|
import { ColorSwatch } from "./color-swatch.js";
|
|
7
|
-
import { Description } from "./description.js";
|
|
8
|
-
import { FieldError } from "./field-error.js";
|
|
9
|
-
import { resolveFieldIssue } from "./form.js";
|
|
10
|
-
import { Input } from "./input.js";
|
|
11
|
-
import { Label } from "./label.js";
|
|
12
13
|
/** Notation {@link ColorField} falls back to when `format` is omitted. */
|
|
13
14
|
const DEFAULT_FORMAT = "hex";
|
|
14
15
|
/**
|
|
@@ -66,7 +67,7 @@ export function ColorField(handle) {
|
|
|
66
67
|
});
|
|
67
68
|
let resolvedFormat = format ?? DEFAULT_FORMAT;
|
|
68
69
|
let resolvedSwatchValue = value ?? defaultValue ?? DEFAULT_SWATCH_VALUE;
|
|
69
|
-
return (_jsxs("div", { ...rest, "data-slot": "color-field", mix:
|
|
70
|
+
return (_jsxs("div", { ...rest, "data-slot": "color-field", mix: mergeMix(fieldStackLayout(), mix), children: [_jsx(Label, { htmlFor: handle.id, mix: parts?.label, children: label }), _jsxs("div", { "data-slot": "control", mix: [hstack({ gap: 2, align: "center" }), parts?.control], children: [_jsx(Input, { id: handle.id, type: "text", name: name, value: value, defaultValue: defaultValue, placeholder: placeholder, pattern: FORMAT_PATTERNS[resolvedFormat], required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete,
|
|
70
71
|
// oxlint-disable-next-line jsx-a11y/no-autofocus -- Not a focus grab on page load: this only ever resolves true for the first field an enclosing Form reports as invalid, so a failed submit lands the user on the problem instead of leaving them to hunt for it.
|
|
71
72
|
autoFocus: resolvedAutoFocus, "aria-invalid": resolvedInvalid, "aria-describedby": describedBy, color: resolvedColor, mix: [spacer(), minIs(0), parts?.input] }), _jsx(ColorSwatch, { value: resolvedSwatchValue, size: "lg", mix: parts?.swatch })] }), description ? (_jsx(Description, { id: descriptionId, mix: parts?.description, children: description })) : null, errorMessage ? (_jsx(FieldError, { id: errorId, mix: parts?.error, children: errorMessage })) : null] }));
|
|
72
73
|
};
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* @copyright Sergio Xalambrí 2026
|
|
8
8
|
*/
|
|
9
9
|
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
import { Popover } from "../components/popover.js";
|
|
10
11
|
import { ColorField } from "./color-field.js";
|
|
11
12
|
import { ColorSwatch } from "./color-swatch.js";
|
|
12
|
-
import { Popover } from "./popover.js";
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for {@link ColorPicker} and its compound parts.
|
|
15
15
|
*/
|