@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
package/dist/components/group.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { outlineColor } from "@sdxc/u/color";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { bg, border, fg, outline, outlineColor } from "@sdxc/u/color";
|
|
3
|
+
import { opacity, rounded } from "@sdxc/u/effects";
|
|
4
|
+
import { cursor, mergeMix, raw } from "@sdxc/u/general";
|
|
5
|
+
import { flex, grow, items, shrink } from "@sdxc/u/layout";
|
|
6
|
+
import { bs, minIs, mis, pi } from "@sdxc/u/size";
|
|
6
7
|
import { z } from "@sdxc/u/stacking";
|
|
7
8
|
import { when } from "@sdxc/u/state";
|
|
9
|
+
import { nowrap, text } from "@sdxc/u/typography";
|
|
8
10
|
import { attrs } from "remix/component";
|
|
9
11
|
/**
|
|
10
12
|
* Default ARIA role applied through {@link attrs} unless a consumer
|
|
@@ -12,6 +14,10 @@ import { attrs } from "remix/component";
|
|
|
12
14
|
* `"presentation"` for purely visual grouping.
|
|
13
15
|
*/
|
|
14
16
|
const DEFAULT_ROLE = "group";
|
|
17
|
+
/** A group holding a {@link Group.Text} addon, which makes it one field drawing its own rings. */
|
|
18
|
+
const WITH_ADDON = '&:has(> [data-slot="group-text"])';
|
|
19
|
+
/** A control whose value fails validation, by the platform's own check or the field's `aria-invalid`. */
|
|
20
|
+
const INVALID_CONTROL = ':is(:user-invalid, [aria-invalid="true"])';
|
|
15
21
|
/**
|
|
16
22
|
* Lays children out in a centered flex row with no border, background, or gap, joining
|
|
17
23
|
* their edges into one shape: only the cluster's outer corners stay round, and the seam
|
|
@@ -35,7 +41,7 @@ const DEFAULT_ROLE = "group";
|
|
|
35
41
|
export function Group(handle) {
|
|
36
42
|
return () => {
|
|
37
43
|
let { mix, ...rest } = handle.props;
|
|
38
|
-
return (_jsx("div", { ...rest, mix: [
|
|
44
|
+
return (_jsx("div", { ...rest, mix: mergeMix([
|
|
39
45
|
attrs({ role: DEFAULT_ROLE }),
|
|
40
46
|
flex(),
|
|
41
47
|
items("center"),
|
|
@@ -43,16 +49,20 @@ export function Group(handle) {
|
|
|
43
49
|
* The controls compose into one shape, so the cluster keeps the rounding on
|
|
44
50
|
* its own outer corners and the seam where two of them meet is drawn once; the
|
|
45
51
|
* last control before a trailing `<link rel="prefetch">` hint keeps its corners.
|
|
52
|
+
* The square corners are `!important` so they hold over every child's own
|
|
53
|
+
* rounding, whichever reached the page first.
|
|
46
54
|
*/
|
|
47
55
|
when("& > *:not(:first-child)", [
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
raw({
|
|
57
|
+
borderStartStartRadius: "0 !important",
|
|
58
|
+
borderEndStartRadius: "0 !important",
|
|
59
|
+
}),
|
|
50
60
|
mis("-1px"),
|
|
51
61
|
]),
|
|
52
|
-
when("& > *:has(~ :not(link))",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
when("& > *:has(~ :not(link))", raw({
|
|
63
|
+
borderStartEndRadius: "0 !important",
|
|
64
|
+
borderEndEndRadius: "0 !important",
|
|
65
|
+
})),
|
|
56
66
|
/**
|
|
57
67
|
* Focus shows on the control holding it, naming which control has it where a ring
|
|
58
68
|
* around the cluster names only the group. That control is raised so its ring
|
|
@@ -60,7 +70,52 @@ export function Group(handle) {
|
|
|
60
70
|
*/
|
|
61
71
|
when("& > *:focus-visible", z(1)),
|
|
62
72
|
when('&[aria-invalid="true"] > *:focus-visible', outlineColor("danger")),
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
/**
|
|
74
|
+
* With an addon the cluster is one field, so it carries the field's rounding and
|
|
75
|
+
* rings, and the control takes the width the addons leave, down to nothing.
|
|
76
|
+
*/
|
|
77
|
+
when(WITH_ADDON, rounded("md")),
|
|
78
|
+
when(`${WITH_ADDON} > :not([data-slot="group-text"])`, [grow(), minIs(0)]),
|
|
79
|
+
when(`${WITH_ADDON}:has(> :focus-visible)`, outline({ color: "brand.ring", offset: 2 })),
|
|
80
|
+
when(`${WITH_ADDON}:has(> [data-color="success"]:focus-visible)`, outlineColor("success.ring")),
|
|
81
|
+
when(`${WITH_ADDON}:has(> [data-color="warning"]:focus-visible)`, outlineColor("warning.ring")),
|
|
82
|
+
when(`${WITH_ADDON}:has(> [data-color="danger"]:focus-visible)`, outlineColor("danger.ring")),
|
|
83
|
+
when(`${WITH_ADDON}:has(> ${INVALID_CONTROL})`, outline({ color: "danger.ring", offset: 2 })),
|
|
84
|
+
], mix) }));
|
|
65
85
|
};
|
|
66
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Renders a static addon joined to the control beside it — a currency, a unit, a domain —
|
|
89
|
+
* as a muted, bordered `<label>` that keeps its text on one line. The `<label>` makes a
|
|
90
|
+
* click on the addon focus the control; it dims with a disabled control and takes the
|
|
91
|
+
* danger border with an invalid one, and its group draws the field's focus and invalid rings.
|
|
92
|
+
*
|
|
93
|
+
* @param handle Runtime handle carrying the host `<label>`'s props.
|
|
94
|
+
* @returns The render function producing the addon's markup.
|
|
95
|
+
* @example
|
|
96
|
+
* <Group>
|
|
97
|
+
* <Group.Text id="slug-prefix" htmlFor="slug">pulse.dev/</Group.Text>
|
|
98
|
+
* <Input id="slug" aria-labelledby="slug-label" aria-describedby="slug-prefix" />
|
|
99
|
+
* </Group>
|
|
100
|
+
*/
|
|
101
|
+
Group.Text = function GroupText(handle) {
|
|
102
|
+
return () => {
|
|
103
|
+
let { mix, ...rest } = handle.props;
|
|
104
|
+
return (_jsx("label", { ...rest, "data-slot": "group-text", mix: mergeMix([
|
|
105
|
+
flex(),
|
|
106
|
+
items("center"),
|
|
107
|
+
shrink(0),
|
|
108
|
+
nowrap(),
|
|
109
|
+
bs(10),
|
|
110
|
+
pi(3),
|
|
111
|
+
rounded("md"),
|
|
112
|
+
border({ color: "neutral", width: 1 }),
|
|
113
|
+
bg("neutral.tint"),
|
|
114
|
+
fg("neutral.muted"),
|
|
115
|
+
text("sm"),
|
|
116
|
+
cursor("text"),
|
|
117
|
+
when(`${INVALID_CONTROL} ~ &, &:has(~ ${INVALID_CONTROL})`, border("danger")),
|
|
118
|
+
when(":disabled ~ &, &:has(~ :disabled)", [opacity(50), cursor("not-allowed")]),
|
|
119
|
+
], mix) }));
|
|
120
|
+
};
|
|
121
|
+
};
|
|
@@ -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 { pb, pi } from "@sdxc/u/size";
|
|
4
5
|
import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
|
|
5
6
|
/**
|
|
@@ -15,7 +16,7 @@ import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
|
|
|
15
16
|
export function Header(handle) {
|
|
16
17
|
return () => {
|
|
17
18
|
let { mix, ...rest } = handle.props;
|
|
18
|
-
return (_jsx("header", { ...rest, mix: [
|
|
19
|
+
return (_jsx("header", { ...rest, mix: mergeMix([
|
|
19
20
|
pi(3),
|
|
20
21
|
pb(1.5),
|
|
21
22
|
weight("semibold"),
|
|
@@ -23,7 +24,6 @@ export function Header(handle) {
|
|
|
23
24
|
fg("neutral.muted"),
|
|
24
25
|
text("xs"),
|
|
25
26
|
textTransform("uppercase"),
|
|
26
|
-
|
|
27
|
-
] }));
|
|
27
|
+
], mix) }));
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
+
import { mergeMix } from "@sdxc/u/general";
|
|
2
3
|
import { contents } from "@sdxc/u/layout";
|
|
3
4
|
/**
|
|
4
5
|
* Native tag rendered for each supported {@link HeadingLevel}, as a single
|
|
@@ -77,6 +78,6 @@ export function HeadingScope(handle) {
|
|
|
77
78
|
let requested = level ?? (ambient === undefined ? undefined : (ambient + 1));
|
|
78
79
|
let resolved = resolveHeadingLevel(handle, requested);
|
|
79
80
|
handle.context.set({ level: resolved });
|
|
80
|
-
return _jsx("div", { ...rest, "data-heading-level": resolved, mix:
|
|
81
|
+
return _jsx("div", { ...rest, "data-heading-level": resolved, mix: mergeMix(contents(), mix) });
|
|
81
82
|
};
|
|
82
83
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Choosing a level changes only the document outline the element contributes to
|
|
8
8
|
* assistive technology; its rendered size stays fixed, so nesting sections
|
|
9
9
|
* correctly never requires a visual trade-off. Pass `size="display"` or
|
|
10
|
-
* `size="chapter"` for
|
|
10
|
+
* `size="chapter"` for landing headlines that read the `--ui-landing-*`
|
|
11
11
|
* display tokens (light weight, tight tracking, near-1.0 leading).
|
|
12
12
|
*
|
|
13
13
|
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
@@ -26,7 +26,7 @@ export declare namespace Heading {
|
|
|
26
26
|
type Level = HeadingLevel;
|
|
27
27
|
/**
|
|
28
28
|
* Visual size recipe: the catalog default, a page H1 display scale, or a
|
|
29
|
-
* section chapter (~40–48px) from the
|
|
29
|
+
* section chapter (~40–48px) from the landing tokens.
|
|
30
30
|
*/
|
|
31
31
|
type Size = "default" | "display" | "chapter";
|
|
32
32
|
/**
|
|
@@ -41,7 +41,7 @@ export declare namespace Heading {
|
|
|
41
41
|
*/
|
|
42
42
|
level?: Level;
|
|
43
43
|
/**
|
|
44
|
-
* Visual size recipe. Defaults to {@link DEFAULT_SIZE}.
|
|
44
|
+
* Visual size recipe. Defaults to {@link DEFAULT_SIZE}. Landing
|
|
45
45
|
* pages reach for `"display"` (H1) or `"chapter"` (section H2); app
|
|
46
46
|
* chrome keeps `"default"`.
|
|
47
47
|
*/
|
|
@@ -51,7 +51,7 @@ export declare namespace Heading {
|
|
|
51
51
|
/**
|
|
52
52
|
* Renders its children inside the native heading element matching `level`.
|
|
53
53
|
* The default size is semibold, tight-tracked emphasis at `lg`; `"display"`
|
|
54
|
-
* and `"chapter"` swap in {@link displayHeading} so large
|
|
54
|
+
* and `"chapter"` swap in {@link displayHeading} so large landing titles
|
|
55
55
|
* stay light-weighted.
|
|
56
56
|
*
|
|
57
57
|
* @param handle Runtime handle carrying the host heading element's props.
|
|
@@ -1,14 +1,15 @@
|
|
|
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 { balance, fontSize, leading, tracking, weight } from "@sdxc/u/typography";
|
|
4
|
-
import { displayHeading } from "../styles/
|
|
5
|
+
import { displayHeading } from "../styles/landing.js";
|
|
5
6
|
import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
|
|
6
7
|
/** Visual size {@link Heading} applies when `size` is omitted. */
|
|
7
8
|
const DEFAULT_SIZE = "default";
|
|
8
9
|
/**
|
|
9
10
|
* Renders its children inside the native heading element matching `level`.
|
|
10
11
|
* The default size is semibold, tight-tracked emphasis at `lg`; `"display"`
|
|
11
|
-
* and `"chapter"` swap in {@link displayHeading} so large
|
|
12
|
+
* and `"chapter"` swap in {@link displayHeading} so large landing titles
|
|
12
13
|
* stay light-weighted.
|
|
13
14
|
*
|
|
14
15
|
* @param handle Runtime handle carrying the host heading element's props.
|
|
@@ -26,11 +27,11 @@ export function Heading(handle) {
|
|
|
26
27
|
let resolved = resolveHeadingLevel(handle, level);
|
|
27
28
|
let resolvedSize = size ?? DEFAULT_SIZE;
|
|
28
29
|
let Tag = TAG_BY_LEVEL[resolved];
|
|
29
|
-
let
|
|
30
|
-
return (_jsx(Tag, { ...rest, "data-heading-level": resolved, "data-size": resolvedSize, mix: [
|
|
30
|
+
let isLanding = resolvedSize === "display" || resolvedSize === "chapter";
|
|
31
|
+
return (_jsx(Tag, { ...rest, "data-heading-level": resolved, "data-size": resolvedSize, mix: mergeMix([
|
|
31
32
|
resolvedSize === "display" ? displayHeading(1) : [],
|
|
32
33
|
resolvedSize === "chapter" ? displayHeading(2) : [],
|
|
33
|
-
|
|
34
|
+
isLanding
|
|
34
35
|
? []
|
|
35
36
|
: [
|
|
36
37
|
weight("semibold"),
|
|
@@ -40,7 +41,6 @@ export function Heading(handle) {
|
|
|
40
41
|
leading("none"),
|
|
41
42
|
balance(),
|
|
42
43
|
],
|
|
43
|
-
|
|
44
|
-
] }));
|
|
44
|
+
], mix) }));
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { fg } from "@sdxc/u/color";
|
|
3
3
|
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
4
|
+
import { raw, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { data, when } from "@sdxc/u/state";
|
|
6
6
|
/** Semantic color role {@link Highlight} falls back to when `color` is omitted. */
|
|
7
7
|
const DEFAULT_COLOR = "brand";
|
|
@@ -20,24 +20,29 @@ const DEFAULT_COLOR = "brand";
|
|
|
20
20
|
export function Highlight(handle) {
|
|
21
21
|
return () => {
|
|
22
22
|
let { color, segments, mix, ...rest } = handle.props;
|
|
23
|
-
return (_jsx("span", { "data-color": color ?? DEFAULT_COLOR, ...rest, mix: [
|
|
23
|
+
return (_jsx("span", { "data-color": color ?? DEFAULT_COLOR, ...rest, mix: mergeMix([
|
|
24
24
|
when("& > mark", [
|
|
25
25
|
fg("inherit"),
|
|
26
26
|
rounded("sm"),
|
|
27
27
|
raw({
|
|
28
28
|
fontWeight: "inherit",
|
|
29
|
-
paddingInline: "0.
|
|
30
|
-
marginInline: "-0.1em",
|
|
29
|
+
paddingInline: "0.08em",
|
|
31
30
|
boxDecorationBreak: "clone",
|
|
32
31
|
WebkitBoxDecorationBreak: "clone",
|
|
33
32
|
}),
|
|
34
33
|
]),
|
|
35
|
-
data("color", "brand", when("& > mark",
|
|
36
|
-
data("color", "neutral", when("& > mark",
|
|
37
|
-
data("color", "success", when("& > mark",
|
|
38
|
-
data("color", "warning", when("& > mark",
|
|
39
|
-
data("color", "danger", when("& > mark",
|
|
40
|
-
|
|
41
|
-
], children: segments.map((segment) => (segment.match ? _jsx("mark", { children: segment.text }) : segment.text)) }));
|
|
34
|
+
data("color", "brand", when("& > mark", markTint("brand"))),
|
|
35
|
+
data("color", "neutral", when("& > mark", markTint("neutral"))),
|
|
36
|
+
data("color", "success", when("& > mark", markTint("success"))),
|
|
37
|
+
data("color", "warning", when("& > mark", markTint("warning"))),
|
|
38
|
+
data("color", "danger", when("& > mark", markTint("danger"))),
|
|
39
|
+
], mix), children: segments.map((segment) => (segment.match ? _jsx("mark", { children: segment.text }) : segment.text)) }));
|
|
42
40
|
};
|
|
43
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* The tint behind a match: the role's ink at 20%, which reads in light and dark alike
|
|
44
|
+
* where the palette's own tint step fades into the page.
|
|
45
|
+
*/
|
|
46
|
+
function markTint(role) {
|
|
47
|
+
return raw({ backgroundColor: `color-mix(in oklab, var(--ui-${role}-fg) 20%, transparent)` });
|
|
48
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { fg } from "@sdxc/u/color";
|
|
3
3
|
import { opacity, transition, transitionDuration, visibility } from "@sdxc/u/effects";
|
|
4
|
-
import { pointerEvents, raw } from "@sdxc/u/general";
|
|
4
|
+
import { pointerEvents, raw, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { absolute, contents, inlineBlock, insBe, insBs, insIe, insIs, relative, } from "@sdxc/u/layout";
|
|
6
6
|
import { media } from "@sdxc/u/responsive";
|
|
7
7
|
import { is, mb, mbe, mbs, marginLeft, marginRight, mi, p } from "@sdxc/u/size";
|
|
@@ -33,7 +33,7 @@ const DEFAULT_PLACEMENT = "bottom";
|
|
|
33
33
|
export function HoverCard(handle) {
|
|
34
34
|
return () => {
|
|
35
35
|
let { children, mix, ...rest } = handle.props;
|
|
36
|
-
return (_jsx("span", { "data-slot": "hover-card", ...rest, mix: [
|
|
36
|
+
return (_jsx("span", { "data-slot": "hover-card", ...rest, mix: mergeMix([
|
|
37
37
|
relative(),
|
|
38
38
|
inlineBlock(),
|
|
39
39
|
media("(hover: hover)", when('&:hover [data-slot="hover-card-content"]', [
|
|
@@ -57,8 +57,7 @@ export function HoverCard(handle) {
|
|
|
57
57
|
transitionDelay: "0s",
|
|
58
58
|
}),
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
], children: children }));
|
|
60
|
+
], mix), children: children }));
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
63
|
/**
|
|
@@ -76,7 +75,7 @@ export function HoverCard(handle) {
|
|
|
76
75
|
HoverCard.Trigger = function HoverCardTrigger(handle) {
|
|
77
76
|
return () => {
|
|
78
77
|
let { children, mix, ...rest } = handle.props;
|
|
79
|
-
return (_jsx("span", { "data-slot": "hover-card-trigger", ...rest, mix:
|
|
78
|
+
return (_jsx("span", { "data-slot": "hover-card-trigger", ...rest, mix: mergeMix(contents(), mix), children: children }));
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
81
|
/**
|
|
@@ -100,7 +99,7 @@ HoverCard.Content = function HoverCardContent(handle) {
|
|
|
100
99
|
return () => {
|
|
101
100
|
let { placement, children, mix, ...rest } = handle.props;
|
|
102
101
|
let resolvedPlacement = placement ?? DEFAULT_PLACEMENT;
|
|
103
|
-
return (_jsx("div", { "data-slot": "hover-card-content", "data-placement": resolvedPlacement, ...rest, mix: [
|
|
102
|
+
return (_jsx("div", { "data-slot": "hover-card-content", "data-placement": resolvedPlacement, ...rest, mix: mergeMix([
|
|
104
103
|
floatingSurface(),
|
|
105
104
|
absolute(),
|
|
106
105
|
p(4),
|
|
@@ -180,7 +179,6 @@ HoverCard.Content = function HoverCardContent(handle) {
|
|
|
180
179
|
transitionDuration("0s"),
|
|
181
180
|
raw({ transitionDelay: "0s" }),
|
|
182
181
|
]),
|
|
183
|
-
|
|
184
|
-
], children: children }));
|
|
182
|
+
], mix), children: children }));
|
|
185
183
|
};
|
|
186
184
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
2
|
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
3
3
|
import { ringShadow, rounded, visibility } from "@sdxc/u/effects";
|
|
4
|
-
import { userSelect } from "@sdxc/u/general";
|
|
4
|
+
import { userSelect, mergeMix } from "@sdxc/u/general";
|
|
5
5
|
import { absolute, center, flex, inlineFlex, insBe, insIe, inset, items, justify, relative, shrink, } from "@sdxc/u/layout";
|
|
6
6
|
import { overflow } from "@sdxc/u/overflow";
|
|
7
7
|
import { bs, fit, is, mis } from "@sdxc/u/size";
|
|
@@ -42,7 +42,7 @@ export function ImagePlaceholder(handle) {
|
|
|
42
42
|
let { size, shape, children, mix, ...rest } = handle.props;
|
|
43
43
|
let resolvedSize = size ?? DEFAULT_SIZE;
|
|
44
44
|
let resolvedShape = shape ?? DEFAULT_SHAPE;
|
|
45
|
-
return (_jsx("span", { ...rest, "data-slot": "image-placeholder", "data-size": resolvedSize, "data-shape": resolvedShape, mix: [
|
|
45
|
+
return (_jsx("span", { ...rest, "data-slot": "image-placeholder", "data-size": resolvedSize, "data-shape": resolvedShape, mix: mergeMix([
|
|
46
46
|
when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
47
47
|
relative(),
|
|
48
48
|
inlineFlex(),
|
|
@@ -75,8 +75,7 @@ export function ImagePlaceholder(handle) {
|
|
|
75
75
|
when('& > [data-slot="image"]', rounded("lg")),
|
|
76
76
|
when('& > [data-slot="fallback"]', rounded("lg")),
|
|
77
77
|
]),
|
|
78
|
-
|
|
79
|
-
], children: children }));
|
|
78
|
+
], mix), children: children }));
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
81
|
/**
|
|
@@ -92,7 +91,7 @@ export function ImagePlaceholder(handle) {
|
|
|
92
91
|
ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
|
|
93
92
|
return () => {
|
|
94
93
|
let { mix, ...rest } = handle.props;
|
|
95
|
-
return (_jsx("img", { ...rest, "data-slot": "image", mix: [
|
|
94
|
+
return (_jsx("img", { ...rest, "data-slot": "image", mix: mergeMix([
|
|
96
95
|
absolute(),
|
|
97
96
|
is("full"),
|
|
98
97
|
bs("full"),
|
|
@@ -100,8 +99,7 @@ ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
|
|
|
100
99
|
inset(0, 0, 0, 0),
|
|
101
100
|
overflow("hidden"),
|
|
102
101
|
outline({ color: IMAGE_OUTLINE, width: 1, offset: -1 }),
|
|
103
|
-
|
|
104
|
-
] }));
|
|
102
|
+
], mix) }));
|
|
105
103
|
};
|
|
106
104
|
};
|
|
107
105
|
/**
|
|
@@ -117,7 +115,7 @@ ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
|
|
|
117
115
|
ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
|
|
118
116
|
return () => {
|
|
119
117
|
let { children, mix, ...rest } = handle.props;
|
|
120
|
-
return (_jsx("span", { ...rest, "data-slot": "fallback", mix: [
|
|
118
|
+
return (_jsx("span", { ...rest, "data-slot": "fallback", mix: mergeMix([
|
|
121
119
|
/**
|
|
122
120
|
* Both layers fill the host and this one follows the image, so it hides while an unbroken
|
|
123
121
|
* image is present and takes over once the image fails. It hides through `visibility`,
|
|
@@ -132,8 +130,7 @@ ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
|
|
|
132
130
|
inset(0, 0, 0, 0),
|
|
133
131
|
overflow("hidden"),
|
|
134
132
|
textTransform("uppercase"),
|
|
135
|
-
|
|
136
|
-
], children: children }));
|
|
133
|
+
], mix), children: children }));
|
|
137
134
|
};
|
|
138
135
|
};
|
|
139
136
|
/**
|
|
@@ -149,7 +146,7 @@ ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
|
|
|
149
146
|
ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
|
|
150
147
|
return () => {
|
|
151
148
|
let { mix, ...rest } = handle.props;
|
|
152
|
-
return (_jsx("span", { ...rest, "data-slot": "badge", mix: [
|
|
149
|
+
return (_jsx("span", { ...rest, "data-slot": "badge", mix: mergeMix([
|
|
153
150
|
absolute(),
|
|
154
151
|
is(3),
|
|
155
152
|
bs(3),
|
|
@@ -158,8 +155,7 @@ ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
|
|
|
158
155
|
bg("neutral.strong"),
|
|
159
156
|
insBe("0"),
|
|
160
157
|
insIe("0"),
|
|
161
|
-
|
|
162
|
-
] }));
|
|
158
|
+
], mix) }));
|
|
163
159
|
};
|
|
164
160
|
};
|
|
165
161
|
/**
|
|
@@ -179,12 +175,11 @@ ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
|
|
|
179
175
|
ImagePlaceholder.Group = function ImagePlaceholderGroup(handle) {
|
|
180
176
|
return () => {
|
|
181
177
|
let { children, mix, ...rest } = handle.props;
|
|
182
|
-
return (_jsx("div", { ...rest, "data-slot": "group", mix: [
|
|
178
|
+
return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix([
|
|
183
179
|
flex(),
|
|
184
180
|
when("& > * + *", mis(-3)),
|
|
185
181
|
when('& > [data-slot="image-placeholder"]', ringShadow("neutral.tint")),
|
|
186
|
-
|
|
187
|
-
], children: children }));
|
|
182
|
+
], mix), children: children }));
|
|
188
183
|
};
|
|
189
184
|
};
|
|
190
185
|
/**
|
|
@@ -201,7 +196,7 @@ ImagePlaceholder.GroupCount = function ImagePlaceholderGroupCount(handle) {
|
|
|
201
196
|
return () => {
|
|
202
197
|
let { shape, children, mix, ...rest } = handle.props;
|
|
203
198
|
let resolvedShape = shape ?? DEFAULT_SHAPE;
|
|
204
|
-
return (_jsx("span", { ...rest, "data-slot": "group-count", "data-shape": resolvedShape, mix: [
|
|
199
|
+
return (_jsx("span", { ...rest, "data-slot": "group-count", "data-shape": resolvedShape, mix: mergeMix([
|
|
205
200
|
relative(),
|
|
206
201
|
inlineFlex(),
|
|
207
202
|
items("center"),
|
|
@@ -219,7 +214,6 @@ ImagePlaceholder.GroupCount = function ImagePlaceholderGroupCount(handle) {
|
|
|
219
214
|
text("sm"),
|
|
220
215
|
tabularNums(),
|
|
221
216
|
ringShadow("neutral.tint"),
|
|
222
|
-
|
|
223
|
-
], children: children }));
|
|
217
|
+
], mix), children: children }));
|
|
224
218
|
};
|
|
225
219
|
};
|
|
@@ -8,52 +8,36 @@
|
|
|
8
8
|
* @copyright Sergio Xalambrí 2026
|
|
9
9
|
*/
|
|
10
10
|
export * from "./accordion.js";
|
|
11
|
-
export * from "./alert.js";
|
|
12
11
|
export * from "./alert-dialog.js";
|
|
12
|
+
export * from "./alert.js";
|
|
13
13
|
export * from "./aspect-ratio.js";
|
|
14
|
-
export * from "./attachment.js";
|
|
15
14
|
export * from "./avatar.js";
|
|
16
15
|
export * from "./badge.js";
|
|
17
16
|
export * from "./breadcrumbs.js";
|
|
18
|
-
export * from "./bubble.js";
|
|
19
17
|
export * from "./button.js";
|
|
20
18
|
export * from "./calendar.js";
|
|
21
19
|
export * from "./card.js";
|
|
22
20
|
export * from "./carousel.js";
|
|
23
|
-
export * from "./chart.js";
|
|
24
|
-
export * from "./checkbox.js";
|
|
25
21
|
export * from "./checkbox-group.js";
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./color-field.js";
|
|
28
|
-
export * from "./color-picker.js";
|
|
29
|
-
export * from "./color-slider.js";
|
|
30
|
-
export * from "./color-swatch.js";
|
|
31
|
-
export * from "./color-swatch-picker.js";
|
|
32
|
-
export * from "./color-wheel.js";
|
|
22
|
+
export * from "./checkbox.js";
|
|
33
23
|
export * from "./combobox.js";
|
|
34
24
|
export * from "./command.js";
|
|
35
25
|
export * from "./confirm.js";
|
|
36
|
-
export * from "./context-menu.js";
|
|
37
26
|
export * from "./cta-group.js";
|
|
38
27
|
export * from "./date-field.js";
|
|
39
28
|
export * from "./date-picker.js";
|
|
40
29
|
export * from "./date-range-picker.js";
|
|
41
30
|
export * from "./description.js";
|
|
31
|
+
export * from "./dialog-dismiss.js";
|
|
42
32
|
export * from "./dialog.js";
|
|
43
33
|
export * from "./disclosure.js";
|
|
44
34
|
export * from "./drawer.js";
|
|
45
|
-
export * from "./drop-indicator.js";
|
|
46
|
-
export * from "./drop-zone.js";
|
|
47
|
-
export * from "./empty.js";
|
|
48
|
-
export * from "./feature.js";
|
|
49
35
|
export * from "./field-error.js";
|
|
50
|
-
export * from "./file-trigger.js";
|
|
51
36
|
export * from "./form.js";
|
|
52
|
-
export * from "./grid-list.js";
|
|
53
37
|
export * from "./group.js";
|
|
54
38
|
export * from "./header.js";
|
|
55
|
-
export * from "./heading.js";
|
|
56
39
|
export * from "./heading-scope.js";
|
|
40
|
+
export * from "./heading.js";
|
|
57
41
|
export * from "./highlight.js";
|
|
58
42
|
export * from "./hover-card.js";
|
|
59
43
|
export * from "./image-placeholder.js";
|
|
@@ -61,18 +45,11 @@ export * from "./input.js";
|
|
|
61
45
|
export * from "./item.js";
|
|
62
46
|
export * from "./keyboard.js";
|
|
63
47
|
export * from "./label.js";
|
|
64
|
-
export * from "./link.js";
|
|
65
48
|
export * from "./link-button.js";
|
|
49
|
+
export * from "./link.js";
|
|
66
50
|
export * from "./listbox.js";
|
|
67
51
|
export * from "./logo.js";
|
|
68
|
-
export * from "./logo-cloud.js";
|
|
69
|
-
export * from "./marker.js";
|
|
70
|
-
export * from "./marketing-header.js";
|
|
71
|
-
export * from "./marketing-section.js";
|
|
72
52
|
export * from "./menu.js";
|
|
73
|
-
export * from "./menubar.js";
|
|
74
|
-
export * from "./message.js";
|
|
75
|
-
export * from "./message-scroller.js";
|
|
76
53
|
export * from "./meter.js";
|
|
77
54
|
export * from "./modal.js";
|
|
78
55
|
export * from "./nav-link.js";
|
|
@@ -85,7 +62,6 @@ export * from "./popover.js";
|
|
|
85
62
|
export * from "./progress-bar.js";
|
|
86
63
|
export * from "./radio-group.js";
|
|
87
64
|
export * from "./range-calendar.js";
|
|
88
|
-
export * from "./resizable.js";
|
|
89
65
|
export * from "./scroll-area.js";
|
|
90
66
|
export * from "./search-field.js";
|
|
91
67
|
export * from "./section.js";
|
|
@@ -95,25 +71,22 @@ export * from "./sentinel-row.js";
|
|
|
95
71
|
export * from "./separator.js";
|
|
96
72
|
export * from "./shared-element.js";
|
|
97
73
|
export * from "./sheet.js";
|
|
98
|
-
export * from "./shortcut-list.js";
|
|
99
74
|
export * from "./sidebar.js";
|
|
100
|
-
export * from "./skeleton.js";
|
|
101
75
|
export * from "./slider.js";
|
|
102
76
|
export * from "./spinner.js";
|
|
103
|
-
export * from "./split.js";
|
|
104
|
-
export * from "./stat-strip.js";
|
|
105
77
|
export * from "./switch.js";
|
|
106
|
-
export * from "./table.js";
|
|
107
78
|
export * from "./tabs.js";
|
|
108
79
|
export * from "./tag-group.js";
|
|
109
|
-
export * from "./text.js";
|
|
110
80
|
export * from "./text-field.js";
|
|
81
|
+
export * from "./text.js";
|
|
111
82
|
export * from "./textarea.js";
|
|
112
83
|
export * from "./time-field.js";
|
|
113
|
-
export * from "./toast.js";
|
|
114
84
|
export * from "./toggle-button.js";
|
|
115
|
-
export * from "./toolbar.js";
|
|
116
85
|
export * from "./tooltip.js";
|
|
117
|
-
export * from "./tree.js";
|
|
118
86
|
export * from "./typeset.js";
|
|
119
87
|
export * from "./youtube-embed.js";
|
|
88
|
+
export * from "./banner.js";
|
|
89
|
+
export * from "./property-list.js";
|
|
90
|
+
export * from "./relative-time.js";
|
|
91
|
+
export * from "./status-dot.js";
|
|
92
|
+
export * from "./timeline.js";
|