@sdxc/ui 2026.10.30 → 2026.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +187 -113
- package/dist/app/app-shell-toggle.d.ts +31 -0
- package/dist/app/app-shell-toggle.js +43 -0
- package/dist/app/app-shell.d.ts +131 -0
- package/dist/app/app-shell.js +542 -0
- package/dist/app/auto-refresh.d.ts +104 -0
- package/dist/app/auto-refresh.js +126 -0
- package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
- package/dist/app/behaviors/refresh-schedule.js +95 -0
- package/dist/app/behaviors/shortcuts.d.ts +175 -0
- package/dist/app/behaviors/shortcuts.js +401 -0
- package/dist/{behaviors → app/behaviors}/toaster.d.ts +31 -2
- package/dist/{behaviors → app/behaviors}/toaster.js +63 -6
- package/dist/{components → app}/chart.d.ts +63 -9
- package/dist/{components → app}/chart.js +222 -40
- package/dist/app/command-palette.d.ts +132 -0
- package/dist/app/command-palette.js +181 -0
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/app/danger-zone.d.ts +66 -0
- package/dist/app/danger-zone.js +66 -0
- package/dist/app/detail-sheet.d.ts +119 -0
- package/dist/app/detail-sheet.js +173 -0
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.d.ts +2 -1
- package/dist/{components → app}/drop-zone.js +7 -4
- package/dist/app/editor-layout.d.ts +69 -0
- package/dist/app/editor-layout.js +143 -0
- package/dist/app/empty.d.ts +128 -0
- package/dist/app/empty.js +248 -0
- package/dist/{components → app}/file-trigger.js +2 -2
- package/dist/app/filter-bar.d.ts +169 -0
- package/dist/app/filter-bar.js +346 -0
- package/dist/{components → app}/grid-list.d.ts +1 -1
- package/dist/{components → app}/grid-list.js +16 -18
- package/dist/app/index.d.ts +92 -0
- package/dist/app/index.js +92 -0
- package/dist/app/keyboard-help.d.ts +66 -0
- package/dist/app/keyboard-help.js +56 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/app/mixins/app-shell-controls.d.ts +46 -0
- package/dist/app/mixins/app-shell-controls.js +131 -0
- package/dist/app/mixins/auto-refresh.d.ts +29 -0
- package/dist/app/mixins/auto-refresh.js +66 -0
- package/dist/app/mixins/command-palette.d.ts +56 -0
- package/dist/app/mixins/command-palette.js +297 -0
- package/dist/app/mixins/copy-permalink.d.ts +26 -0
- package/dist/app/mixins/copy-permalink.js +54 -0
- package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
- package/dist/app/mixins/detail-sheet-keys.js +88 -0
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/app/mixins/escape-link.d.ts +17 -0
- package/dist/app/mixins/escape-link.js +35 -0
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/app/mixins/keyboard-help.d.ts +38 -0
- package/dist/app/mixins/keyboard-help.js +51 -0
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
- package/dist/app/mixins/range-picker-keys.d.ts +18 -0
- package/dist/app/mixins/range-picker-keys.js +94 -0
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/app/mixins/row-navigation.d.ts +85 -0
- package/dist/app/mixins/row-navigation.js +208 -0
- package/dist/app/mixins/save-bar-sync.d.ts +27 -0
- package/dist/app/mixins/save-bar-sync.js +106 -0
- package/dist/app/mixins/save-shortcut.d.ts +47 -0
- package/dist/app/mixins/save-shortcut.js +101 -0
- package/dist/app/mixins/save-status-sync.d.ts +77 -0
- package/dist/app/mixins/save-status-sync.js +159 -0
- package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
- package/dist/app/mixins/selection-bar-sync.js +151 -0
- package/dist/app/mixins/split-view.d.ts +66 -0
- package/dist/app/mixins/split-view.js +319 -0
- package/dist/app/mixins/status-strip-keys.d.ts +17 -0
- package/dist/app/mixins/status-strip-keys.js +79 -0
- package/dist/app/mixins/submit-on-change.d.ts +16 -0
- package/dist/app/mixins/submit-on-change.js +28 -0
- package/dist/app/mixins/table-selection.d.ts +39 -0
- package/dist/app/mixins/table-selection.js +272 -0
- package/dist/app/mixins/toast-queue.d.ts +36 -0
- package/dist/app/mixins/toast-queue.js +77 -0
- package/dist/app/mixins/toast-stack.d.ts +20 -0
- package/dist/app/mixins/toast-stack.js +55 -0
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/app/optimistic-toggle.d.ts +48 -0
- package/dist/app/optimistic-toggle.js +38 -0
- package/dist/app/page-header.d.ts +71 -0
- package/dist/app/page-header.js +249 -0
- package/dist/app/range-picker.d.ts +102 -0
- package/dist/app/range-picker.js +118 -0
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/app/save-bar.d.ts +54 -0
- package/dist/app/save-bar.js +64 -0
- package/dist/app/save-status.d.ts +50 -0
- package/dist/app/save-status.js +54 -0
- package/dist/app/selection-bar.d.ts +101 -0
- package/dist/app/selection-bar.js +157 -0
- package/dist/app/settings-layout.d.ts +70 -0
- package/dist/app/settings-layout.js +112 -0
- package/dist/app/settings-section.d.ts +140 -0
- package/dist/app/settings-section.js +182 -0
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/app/skeleton.d.ts +79 -0
- package/dist/app/skeleton.js +185 -0
- package/dist/app/sparkline.d.ts +61 -0
- package/dist/app/sparkline.js +145 -0
- package/dist/app/split-view.d.ts +154 -0
- package/dist/app/split-view.js +272 -0
- package/dist/app/stat-card.d.ts +109 -0
- package/dist/app/stat-card.js +379 -0
- package/dist/app/status-strip.d.ts +70 -0
- package/dist/app/status-strip.js +155 -0
- package/dist/app/styles/action-row.d.ts +41 -0
- package/dist/app/styles/action-row.js +59 -0
- package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
- package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
- package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
- package/dist/app/styles/stat-delta.d.ts +29 -0
- package/dist/app/styles/stat-delta.js +36 -0
- package/dist/app/styles/toast-stack.d.ts +21 -0
- package/dist/app/styles/toast-stack.js +54 -0
- package/dist/app/table.d.ts +327 -0
- package/dist/app/table.js +839 -0
- package/dist/{components → app}/toast.d.ts +105 -5
- package/dist/{components → app}/toast.js +101 -35
- package/dist/app/toasts.d.ts +49 -0
- package/dist/app/toasts.js +103 -0
- package/dist/{components → app}/toolbar.js +3 -3
- package/dist/{components → app}/tree.d.ts +1 -1
- package/dist/{components → app}/tree.js +10 -14
- package/dist/app/utils/app-shell-cookie.d.ts +21 -0
- package/dist/app/utils/app-shell-cookie.js +33 -0
- package/dist/{utils → app/utils}/chart-marker-indices.d.ts +9 -5
- package/dist/{utils → app/utils}/chart-marker-indices.js +9 -8
- package/dist/{utils → app/utils}/chart-path.d.ts +15 -11
- package/dist/{utils → app/utils}/chart-path.js +48 -20
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- package/dist/app/utils/edited-time.d.ts +19 -0
- package/dist/app/utils/edited-time.js +35 -0
- package/dist/app/utils/key-target.d.ts +23 -0
- package/dist/app/utils/key-target.js +48 -0
- package/dist/app/utils/search-params.d.ts +69 -0
- package/dist/app/utils/search-params.js +132 -0
- package/dist/app/utils/shortcut-groups.d.ts +21 -0
- package/dist/app/utils/shortcut-groups.js +53 -0
- package/dist/app/utils/split-view-layout.d.ts +48 -0
- package/dist/app/utils/split-view-layout.js +71 -0
- package/dist/app/view-options.d.ts +99 -0
- package/dist/app/view-options.js +182 -0
- package/dist/behaviors/index.d.ts +0 -5
- package/dist/behaviors/index.js +0 -5
- package/dist/{components → chat}/attachment.d.ts +1 -1
- package/dist/{components → chat}/attachment.js +17 -23
- package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
- package/dist/{components → chat}/bubble.js +14 -14
- package/dist/chat/index.d.ts +16 -0
- package/dist/chat/index.js +16 -0
- package/dist/{components → chat}/marker.js +6 -8
- package/dist/{components → chat}/message-scroller.d.ts +1 -1
- package/dist/{components → chat}/message-scroller.js +12 -18
- package/dist/{components → chat}/message.js +10 -12
- package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
- package/dist/{components → color}/color-area.js +7 -10
- package/dist/{components → color}/color-field.js +7 -6
- package/dist/{components → color}/color-picker.d.ts +1 -1
- package/dist/{components → color}/color-picker.js +9 -12
- package/dist/{components → color}/color-slider.js +10 -13
- package/dist/{components → color}/color-swatch-picker.js +4 -5
- package/dist/{components → color}/color-swatch.js +3 -4
- package/dist/{components → color}/color-wheel.js +5 -6
- package/dist/color/index.d.ts +21 -0
- package/dist/color/index.js +21 -0
- package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
- package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
- package/dist/{mixins → color/mixins}/color-preview.js +1 -1
- package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
- package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +19 -15
- package/dist/components/alert-dialog.js +5 -4
- package/dist/components/alert.js +10 -20
- package/dist/components/aspect-ratio.js +3 -4
- package/dist/components/avatar.d.ts +6 -6
- package/dist/components/avatar.js +56 -8
- package/dist/components/badge.js +11 -9
- package/dist/components/banner.d.ts +61 -0
- package/dist/components/banner.js +101 -0
- package/dist/components/breadcrumbs.js +7 -9
- package/dist/components/button.d.ts +8 -6
- package/dist/components/button.js +22 -14
- package/dist/components/calendar.js +13 -24
- package/dist/components/card.js +9 -11
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +12 -20
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.js +10 -14
- package/dist/components/confirm.d.ts +54 -5
- package/dist/components/confirm.js +44 -5
- package/dist/components/cta-group.d.ts +30 -14
- package/dist/components/cta-group.js +29 -10
- package/dist/components/date-field.js +2 -1
- package/dist/components/date-picker.js +4 -5
- package/dist/components/date-range-picker.js +3 -2
- package/dist/components/description.js +2 -1
- package/dist/components/dialog-dismiss.d.ts +18 -0
- package/dist/components/dialog-dismiss.js +15 -0
- package/dist/components/dialog.js +11 -15
- package/dist/components/disclosure.js +10 -14
- package/dist/components/drawer.js +3 -4
- package/dist/components/field-error.js +3 -3
- package/dist/components/form.js +2 -1
- package/dist/components/group.d.ts +14 -0
- package/dist/components/group.js +68 -13
- package/dist/components/header.js +3 -3
- package/dist/components/heading-scope.js +2 -1
- package/dist/components/heading.d.ts +4 -4
- package/dist/components/heading.js +7 -7
- package/dist/components/highlight.js +17 -12
- package/dist/components/hover-card.js +6 -8
- package/dist/components/image-placeholder.js +13 -19
- package/dist/components/index.d.ts +11 -38
- package/dist/components/index.js +11 -38
- package/dist/components/input.js +12 -7
- package/dist/components/item.js +10 -19
- package/dist/components/keyboard.js +3 -3
- package/dist/components/label.js +2 -1
- package/dist/components/link-button.d.ts +7 -5
- package/dist/components/link-button.js +24 -13
- package/dist/components/link.js +3 -4
- package/dist/components/listbox.js +6 -11
- package/dist/components/menu.js +5 -6
- package/dist/components/meter.js +5 -6
- package/dist/components/modal.js +9 -11
- package/dist/components/nav-link.d.ts +1 -1
- package/dist/components/nav-link.js +3 -4
- package/dist/components/navigation-menu.js +17 -23
- package/dist/components/number-field.js +8 -10
- package/dist/components/otp-field.js +2 -1
- package/dist/components/overlay-arrow.js +3 -4
- package/dist/components/pagination.js +8 -10
- package/dist/components/popover.js +3 -4
- package/dist/components/progress-bar.js +5 -5
- package/dist/components/property-list.d.ts +76 -0
- package/dist/components/property-list.js +175 -0
- package/dist/components/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- package/dist/components/relative-time.d.ts +72 -0
- package/dist/components/relative-time.js +45 -0
- package/dist/components/scroll-area.js +4 -5
- package/dist/components/search-field.js +8 -11
- package/dist/components/section.js +2 -1
- package/dist/components/select.js +10 -22
- package/dist/components/selection-indicator.js +3 -3
- package/dist/components/sentinel-row.js +3 -3
- package/dist/components/separator.js +3 -3
- package/dist/components/shared-element.js +2 -1
- package/dist/components/sheet.js +6 -7
- package/dist/components/sidebar.js +48 -76
- package/dist/components/slider.js +8 -10
- package/dist/components/spinner.js +3 -3
- package/dist/components/status-dot.d.ts +62 -0
- package/dist/components/status-dot.js +99 -0
- package/dist/components/switch.js +3 -3
- package/dist/components/tabs.js +9 -12
- package/dist/components/tag-group.js +7 -9
- package/dist/components/text-field.d.ts +17 -2
- package/dist/components/text-field.js +14 -4
- package/dist/components/text.js +2 -1
- package/dist/components/textarea.js +3 -4
- package/dist/components/time-field.js +2 -1
- package/dist/components/timeline.d.ts +67 -0
- package/dist/components/timeline.js +159 -0
- package/dist/components/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.d.ts +2 -1
- package/dist/components/typeset.js +131 -123
- package/dist/components/youtube-embed.js +2 -1
- package/dist/docs/anchor-heading.d.ts +41 -0
- package/dist/docs/anchor-heading.js +62 -0
- package/dist/docs/callout.d.ts +46 -0
- package/dist/docs/callout.js +61 -0
- package/dist/docs/code-block.d.ts +74 -0
- package/dist/docs/code-block.js +322 -0
- package/dist/docs/code-tabs-sync.d.ts +26 -0
- package/dist/docs/code-tabs-sync.js +12 -0
- package/dist/docs/code-tabs.d.ts +53 -0
- package/dist/docs/code-tabs.js +102 -0
- package/dist/docs/copy-button.d.ts +31 -0
- package/dist/docs/copy-button.js +49 -0
- package/dist/docs/docs-feedback.d.ts +67 -0
- package/dist/docs/docs-feedback.js +74 -0
- package/dist/docs/docs-footer.d.ts +40 -0
- package/dist/docs/docs-footer.js +45 -0
- package/dist/docs/docs-hub.d.ts +93 -0
- package/dist/docs/docs-hub.js +142 -0
- package/dist/docs/docs-layout.d.ts +90 -0
- package/dist/docs/docs-layout.js +166 -0
- package/dist/docs/docs-nav-tools.d.ts +25 -0
- package/dist/docs/docs-nav-tools.js +14 -0
- package/dist/docs/docs-nav.d.ts +57 -0
- package/dist/docs/docs-nav.js +76 -0
- package/dist/docs/docs-not-found.d.ts +68 -0
- package/dist/docs/docs-not-found.js +100 -0
- package/dist/docs/docs-page-header.d.ts +55 -0
- package/dist/docs/docs-page-header.js +54 -0
- package/dist/docs/docs-pager.d.ts +50 -0
- package/dist/docs/docs-pager.js +75 -0
- package/dist/docs/file-tree.d.ts +57 -0
- package/dist/docs/file-tree.js +142 -0
- package/dist/docs/index.d.ts +38 -0
- package/dist/docs/index.js +38 -0
- package/dist/docs/install-command.d.ts +54 -0
- package/dist/docs/install-command.js +33 -0
- package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
- package/dist/docs/mixins/code-tabs-sync.js +137 -0
- package/dist/docs/mixins/copy-feedback.d.ts +25 -0
- package/dist/docs/mixins/copy-feedback.js +49 -0
- package/dist/docs/mixins/copy-from-url.d.ts +27 -0
- package/dist/docs/mixins/copy-from-url.js +95 -0
- package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
- package/dist/docs/mixins/docs-nav-tools.js +124 -0
- package/dist/docs/mixins/toc-spy.d.ts +30 -0
- package/dist/docs/mixins/toc-spy.js +165 -0
- package/dist/docs/next-steps.d.ts +45 -0
- package/dist/docs/next-steps.js +80 -0
- package/dist/docs/page-actions.d.ts +77 -0
- package/dist/docs/page-actions.js +78 -0
- package/dist/docs/plan-notice.d.ts +28 -0
- package/dist/docs/plan-notice.js +33 -0
- package/dist/docs/props-table.d.ts +64 -0
- package/dist/docs/props-table.js +147 -0
- package/dist/docs/steps.d.ts +51 -0
- package/dist/docs/steps.js +112 -0
- package/dist/docs/table-of-contents.d.ts +49 -0
- package/dist/docs/table-of-contents.js +139 -0
- package/dist/docs/ui-label.d.ts +51 -0
- package/dist/docs/ui-label.js +64 -0
- package/dist/docs/utils/docs-tree.d.ts +81 -0
- package/dist/docs/utils/docs-tree.js +57 -0
- package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
- package/dist/docs/utils/reveal-in-scroller.js +43 -0
- package/dist/landing/accent-text.d.ts +47 -0
- package/dist/landing/accent-text.js +107 -0
- package/dist/landing/animations/entrance.d.ts +40 -0
- package/dist/landing/animations/entrance.js +52 -0
- package/dist/landing/announcement-chip.d.ts +45 -0
- package/dist/landing/announcement-chip.js +36 -0
- package/dist/landing/author-band.d.ts +78 -0
- package/dist/landing/author-band.js +190 -0
- package/dist/landing/bento.d.ts +99 -0
- package/dist/landing/bento.js +138 -0
- package/dist/landing/changelog-strip.d.ts +74 -0
- package/dist/landing/changelog-strip.js +201 -0
- package/dist/{patterns → landing}/check-row.js +5 -7
- package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
- package/dist/{patterns → landing}/closing-cta.js +8 -8
- package/dist/landing/code-stage.d.ts +93 -0
- package/dist/landing/code-stage.js +434 -0
- package/dist/landing/crosshair.d.ts +44 -0
- package/dist/landing/crosshair.js +48 -0
- package/dist/landing/curriculum.d.ts +79 -0
- package/dist/landing/curriculum.js +194 -0
- package/dist/landing/drawn-chart.d.ts +74 -0
- package/dist/landing/drawn-chart.js +377 -0
- package/dist/landing/event-ticker.d.ts +71 -0
- package/dist/landing/event-ticker.js +331 -0
- package/dist/landing/fan-out-diagram.d.ts +70 -0
- package/dist/landing/fan-out-diagram.js +481 -0
- package/dist/{patterns → landing}/faq-band.d.ts +5 -5
- package/dist/{patterns → landing}/faq-band.js +13 -14
- package/dist/landing/feature-band.d.ts +108 -0
- package/dist/landing/feature-band.js +67 -0
- package/dist/landing/feature.d.ts +148 -0
- package/dist/landing/feature.js +219 -0
- package/dist/landing/flow-diagram.d.ts +62 -0
- package/dist/landing/flow-diagram.js +240 -0
- package/dist/{patterns → landing}/icon-well.d.ts +17 -7
- package/dist/landing/icon-well.js +31 -0
- package/dist/landing/index.d.ts +52 -0
- package/dist/landing/index.js +52 -0
- package/dist/{patterns → landing}/install-tabs.js +4 -5
- package/dist/landing/landing-header.d.ts +103 -0
- package/dist/landing/landing-header.js +110 -0
- package/dist/landing/landing-hero.d.ts +119 -0
- package/dist/landing/landing-hero.js +172 -0
- package/dist/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
- package/dist/landing/landing-section.js +183 -0
- package/dist/landing/logo-cloud.d.ts +56 -0
- package/dist/landing/logo-cloud.js +160 -0
- package/dist/landing/logo-sentence.d.ts +38 -0
- package/dist/landing/logo-sentence.js +51 -0
- package/dist/landing/marquee.d.ts +44 -0
- package/dist/landing/marquee.js +97 -0
- package/dist/landing/motion-loop.d.ts +43 -0
- package/dist/landing/motion-loop.js +42 -0
- package/dist/landing/pricing-band.d.ts +94 -0
- package/dist/landing/pricing-band.js +151 -0
- package/dist/landing/product-frame.d.ts +108 -0
- package/dist/landing/product-frame.js +202 -0
- package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
- package/dist/{patterns → landing}/proof-strip.js +3 -3
- package/dist/landing/rails.d.ts +45 -0
- package/dist/landing/rails.js +69 -0
- package/dist/landing/rotating-text.d.ts +44 -0
- package/dist/landing/rotating-text.js +67 -0
- package/dist/landing/segmented-stage.d.ts +75 -0
- package/dist/landing/segmented-stage.js +141 -0
- package/dist/landing/sequence-diagram.d.ts +65 -0
- package/dist/landing/sequence-diagram.js +348 -0
- package/dist/landing/site-footer.d.ts +100 -0
- package/dist/landing/site-footer.js +274 -0
- package/dist/landing/site-header.d.ts +126 -0
- package/dist/landing/site-header.js +595 -0
- package/dist/{components → landing}/split.d.ts +12 -5
- package/dist/{components → landing}/split.js +26 -18
- package/dist/landing/sponsor-wall.d.ts +81 -0
- package/dist/landing/sponsor-wall.js +241 -0
- package/dist/{components → landing}/stat-strip.d.ts +31 -7
- package/dist/landing/stat-strip.js +105 -0
- package/dist/landing/step-list.d.ts +73 -0
- package/dist/landing/step-list.js +182 -0
- package/dist/landing/styles/card-grid.d.ts +115 -0
- package/dist/landing/styles/card-grid.js +295 -0
- package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
- package/dist/landing/tabbed-stage.js +233 -0
- package/dist/landing/testimonial-band.d.ts +110 -0
- package/dist/landing/testimonial-band.js +164 -0
- package/dist/landing/typed-terminal.d.ts +62 -0
- package/dist/landing/typed-terminal.js +233 -0
- package/dist/landing/utils/pause-toggle.d.ts +37 -0
- package/dist/landing/utils/pause-toggle.js +71 -0
- package/dist/mixins/confirm-phrase.d.ts +19 -0
- package/dist/mixins/confirm-phrase.js +56 -0
- package/dist/mixins/copy-to-clipboard.d.ts +6 -0
- package/dist/mixins/copy-to-clipboard.js +17 -1
- package/dist/mixins/dialog-dismiss.d.ts +21 -0
- package/dist/mixins/dialog-dismiss.js +62 -0
- package/dist/mixins/index.d.ts +4 -15
- package/dist/mixins/index.js +4 -15
- package/dist/mixins/viewer-time.d.ts +20 -0
- package/dist/mixins/viewer-time.js +40 -0
- package/dist/styles/index.d.ts +3 -5
- package/dist/styles/index.js +3 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/segmented-control.d.ts +49 -0
- package/dist/styles/segmented-control.js +71 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/test/table.d.ts +65 -0
- package/dist/test/table.js +108 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +2 -5
- package/dist/utils/index.js +2 -5
- package/dist/utils/relative-time.d.ts +44 -0
- package/dist/utils/relative-time.js +69 -0
- package/package.json +16 -6
- package/src/theme.css +87 -22
- package/dist/components/empty.d.ts +0 -91
- package/dist/components/empty.js +0 -151
- package/dist/components/feature.d.ts +0 -102
- package/dist/components/feature.js +0 -150
- package/dist/components/logo-cloud.d.ts +0 -42
- package/dist/components/logo-cloud.js +0 -41
- package/dist/components/marketing-header.d.ts +0 -71
- package/dist/components/marketing-header.js +0 -81
- package/dist/components/marketing-section.js +0 -117
- package/dist/components/skeleton.d.ts +0 -36
- package/dist/components/skeleton.js +0 -38
- package/dist/components/stat-strip.js +0 -65
- package/dist/components/table.d.ts +0 -152
- package/dist/components/table.js +0 -238
- package/dist/patterns/accent-text.d.ts +0 -30
- package/dist/patterns/accent-text.js +0 -17
- package/dist/patterns/announcement-chip.d.ts +0 -41
- package/dist/patterns/announcement-chip.js +0 -49
- package/dist/patterns/bento.d.ts +0 -68
- package/dist/patterns/bento.js +0 -94
- package/dist/patterns/code-stage.d.ts +0 -63
- package/dist/patterns/code-stage.js +0 -82
- package/dist/patterns/feature-band.d.ts +0 -85
- package/dist/patterns/feature-band.js +0 -50
- package/dist/patterns/icon-well.js +0 -38
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.js +0 -23
- package/dist/patterns/landing-hero.d.ts +0 -93
- package/dist/patterns/landing-hero.js +0 -126
- package/dist/patterns/product-frame.d.ts +0 -60
- package/dist/patterns/product-frame.js +0 -70
- package/dist/patterns/step-list.d.ts +0 -47
- package/dist/patterns/step-list.js +0 -85
- package/dist/patterns/tabbed-stage.js +0 -77
- package/dist/styles/marketing.d.ts +0 -120
- package/dist/styles/marketing.js +0 -225
- package/dist/utils/semantic-color-panel.d.ts +0 -35
- package/dist/utils/semantic-color-panel.js +0 -28
- /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
- /package/dist/{components → app}/drop-indicator.d.ts +0 -0
- /package/dist/{components → app}/file-trigger.d.ts +0 -0
- /package/dist/{components → app}/menubar.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
- /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
- /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
- /package/dist/{components → app}/resizable.d.ts +0 -0
- /package/dist/{components → app}/shortcut-list.d.ts +0 -0
- /package/dist/{styles → app/styles}/chart-palette.js +0 -0
- /package/dist/{styles → app/styles}/graphic-host.js +0 -0
- /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
- /package/dist/{components → app}/toolbar.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
- /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
- /package/dist/{components → chat}/bubble.d.ts +0 -0
- /package/dist/{components → chat}/marker.d.ts +0 -0
- /package/dist/{components → chat}/message.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
- /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
- /package/dist/{components → color}/color-area.d.ts +0 -0
- /package/dist/{components → color}/color-field.d.ts +0 -0
- /package/dist/{components → color}/color-slider.d.ts +0 -0
- /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
- /package/dist/{components → color}/color-swatch.d.ts +0 -0
- /package/dist/{components → color}/color-wheel.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
- /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
- /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
- /package/dist/{patterns → landing}/check-row.d.ts +0 -0
- /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
+
import { PlayIcon } from "@sdxc/icons";
|
|
3
|
+
import { fg } from "@sdxc/u/color";
|
|
4
|
+
import { combine, raw } from "@sdxc/u/general";
|
|
5
|
+
import { container, vstack } from "@sdxc/u/layout";
|
|
6
|
+
import { at, motionSafe } from "@sdxc/u/responsive";
|
|
7
|
+
import { m } from "@sdxc/u/size";
|
|
8
|
+
import { when } from "@sdxc/u/state";
|
|
9
|
+
import { leading, text, weight } from "@sdxc/u/typography";
|
|
10
|
+
import { displayHeading } from "../styles/landing.js";
|
|
11
|
+
import { LandingHeader } from "./landing-header.js";
|
|
12
|
+
import { LandingSection } from "./landing-section.js";
|
|
13
|
+
/** Container the band's split and the portrait's phone cap query. */
|
|
14
|
+
const CONTAINER = "ui-landing-author-band";
|
|
15
|
+
/** The inset hairline that keeps a photo's edge visible on a matching background. */
|
|
16
|
+
const IMAGE_OUTLINE = "1px solid var(--ui-image-outline, rgb(0 0 0 / 0.1))";
|
|
17
|
+
/** Corner radius of the portrait and the video card. */
|
|
18
|
+
const RADIUS = "var(--ui-landing-radius-surface, 1rem)";
|
|
19
|
+
/**
|
|
20
|
+
* Renders the portrait and the copy column: one column on a phone with the portrait capped
|
|
21
|
+
* at 20rem, then a 5/7 split from the `lg` container with both columns starting at the
|
|
22
|
+
* same top edge.
|
|
23
|
+
*
|
|
24
|
+
* @param handle Runtime handle carrying the band's props.
|
|
25
|
+
* @returns The render function producing the band's markup.
|
|
26
|
+
* @example
|
|
27
|
+
* <AuthorBand
|
|
28
|
+
* portrait={<img src={portrait} alt="Odile Varga at her drafting table" />}
|
|
29
|
+
* eyebrow={t("author.eyebrow")}
|
|
30
|
+
* title={t("author.title")}
|
|
31
|
+
* description={t("author.bio")}
|
|
32
|
+
* name="Odile Varga"
|
|
33
|
+
* jobTitle={t("author.role")}
|
|
34
|
+
* />
|
|
35
|
+
*/
|
|
36
|
+
export function AuthorBand(handle) {
|
|
37
|
+
return () => {
|
|
38
|
+
let { credentials, description, eyebrow, mix, name, portrait, jobTitle, signature, social, title, video, ...rest } = handle.props;
|
|
39
|
+
return (_jsx(LandingSection, { ...rest, mix: mix, children: _jsx("div", { "data-slot": "author-band", mix: [container(CONTAINER), raw({ inlineSize: "100%" })], children: _jsxs("div", { "data-slot": "author-band-layout", mix: [layout()], children: [_jsx("figure", { "data-slot": "author-band-portrait", mix: [portraitFrame()], children: portrait }), _jsxs("div", { "data-slot": "author-band-copy", mix: [vstack({ gap: 8, align: "stretch" })], children: [_jsx(LandingHeader, { eyebrow: eyebrow, description: description, mix: [raw({ "--ui-landing-header-end": "0" })], children: title }), credentials ? _jsx("div", { "data-slot": "author-band-credentials", children: credentials }) : null, _jsxs("div", { "data-slot": "author-band-byline", mix: [vstack({ gap: 3, align: "start" })], children: [signature ? (_jsx("div", { "data-slot": "author-band-signature", mix: [signatureFrame()], children: signature })) : null, _jsxs("p", { mix: [m(0), vstack({ gap: 0.5, align: "start" })], children: [_jsx("span", { mix: [text("lg"), weight("semibold"), fg("neutral.emphasis")], children: name }), jobTitle ? (_jsx("span", { mix: [text("sm"), fg("neutral.muted")], children: jobTitle })) : null] }), social?.length ? (_jsx("ul", { "data-slot": "author-band-social", mix: [socialList()], children: social.map((link) => (_jsx("li", { children: _jsx("a", { href: link.href, "aria-label": link.label, title: link.label, children: link.icon }) }, link.href))) })) : null] }), video ? _jsx(VideoCard, { ...video }) : null] })] }) }) }));
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The band's grid in one rule: a single column on a phone, then a 5/7 split from the
|
|
44
|
+
* `lg` container, both columns pinned to the top so the portrait and the eyebrow start
|
|
45
|
+
* on one line.
|
|
46
|
+
*/
|
|
47
|
+
function layout() {
|
|
48
|
+
return combine([
|
|
49
|
+
raw({
|
|
50
|
+
display: "grid",
|
|
51
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
52
|
+
alignItems: "start",
|
|
53
|
+
gap: "2.5rem",
|
|
54
|
+
}),
|
|
55
|
+
at("lg", CONTAINER, raw({ gridTemplateColumns: "minmax(0, 5fr) minmax(0, 7fr)", columnGap: "4rem" })),
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The portrait's frame: 3:4 at the surface radius with an inset hairline over the photo's
|
|
60
|
+
* edge, full width capped at 20rem on a phone and filling its column from `lg`.
|
|
61
|
+
*/
|
|
62
|
+
function portraitFrame() {
|
|
63
|
+
return combine([
|
|
64
|
+
raw({
|
|
65
|
+
margin: "0",
|
|
66
|
+
inlineSize: "100%",
|
|
67
|
+
maxInlineSize: "20rem",
|
|
68
|
+
aspectRatio: "3 / 4",
|
|
69
|
+
borderRadius: RADIUS,
|
|
70
|
+
overflow: "hidden",
|
|
71
|
+
backgroundColor: "var(--ui-neutral-bg-tint)",
|
|
72
|
+
outline: IMAGE_OUTLINE,
|
|
73
|
+
outlineOffset: "-1px",
|
|
74
|
+
}),
|
|
75
|
+
at("lg", CONTAINER, raw({ maxInlineSize: "none" })),
|
|
76
|
+
when("& > :is(img, svg, picture, video)", raw({ display: "block", inlineSize: "100%", blockSize: "100%", objectFit: "cover" })),
|
|
77
|
+
]);
|
|
78
|
+
}
|
|
79
|
+
/** The signature's frame: 8rem wide in the heading ink, scaling the SVG to fit. */
|
|
80
|
+
function signatureFrame() {
|
|
81
|
+
return combine([
|
|
82
|
+
raw({ inlineSize: "8rem", color: "var(--ui-neutral-fg-emphasis)" }),
|
|
83
|
+
when("& > svg", raw({ display: "block", inlineSize: "100%", blockSize: "auto" })),
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The social row: each link a 2.75rem square, so every icon has a 44px hit area, with the
|
|
88
|
+
* row pulled back by the icon's inset so the first glyph lines up with the name above.
|
|
89
|
+
*/
|
|
90
|
+
function socialList() {
|
|
91
|
+
return combine([
|
|
92
|
+
raw({
|
|
93
|
+
listStyle: "none",
|
|
94
|
+
margin: "0",
|
|
95
|
+
marginInlineStart: "-0.75rem",
|
|
96
|
+
padding: "0",
|
|
97
|
+
display: "flex",
|
|
98
|
+
flexWrap: "wrap",
|
|
99
|
+
}),
|
|
100
|
+
when("& a", raw({
|
|
101
|
+
display: "grid",
|
|
102
|
+
placeItems: "center",
|
|
103
|
+
inlineSize: "2.75rem",
|
|
104
|
+
blockSize: "2.75rem",
|
|
105
|
+
borderRadius: "0.5rem",
|
|
106
|
+
color: "var(--ui-neutral-fg-muted)",
|
|
107
|
+
})),
|
|
108
|
+
when("& a:is(:hover, :focus-visible)", raw({ color: "var(--ui-neutral-fg-emphasis)" })),
|
|
109
|
+
when("& a > svg", raw({ inlineSize: "1.25rem", blockSize: "1.25rem" })),
|
|
110
|
+
]);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The intro video as a 16:9 linked still: the title over a dark fade at the foot, a round
|
|
114
|
+
* play button in the centre, and a caption with the runtime under the card.
|
|
115
|
+
*
|
|
116
|
+
* @param handle Runtime handle carrying the video's details.
|
|
117
|
+
* @returns The render function producing the card and its caption.
|
|
118
|
+
*/
|
|
119
|
+
function VideoCard(handle) {
|
|
120
|
+
return () => {
|
|
121
|
+
let { duration, href, thumbnail, title } = handle.props;
|
|
122
|
+
return (_jsxs("figure", { "data-slot": "author-band-video", mix: [m(0), vstack({ gap: 2, align: "stretch" }), raw({ maxInlineSize: "24rem" })], children: [_jsxs("a", { href: href, mix: [videoLink()], children: [thumbnail, _jsx("span", { "data-slot": "author-band-video-play", "aria-hidden": "true", mix: [
|
|
123
|
+
raw({
|
|
124
|
+
position: "absolute",
|
|
125
|
+
insetBlockStart: "50%",
|
|
126
|
+
insetInlineStart: "50%",
|
|
127
|
+
translate: "-50% -50%",
|
|
128
|
+
zIndex: "1",
|
|
129
|
+
display: "grid",
|
|
130
|
+
placeItems: "center",
|
|
131
|
+
inlineSize: "3.5rem",
|
|
132
|
+
blockSize: "3.5rem",
|
|
133
|
+
borderRadius: "9999px",
|
|
134
|
+
backgroundColor: "rgb(255 255 255 / 0.92)",
|
|
135
|
+
color: "rgb(0 0 0 / 0.85)",
|
|
136
|
+
boxShadow: "0 4px 16px rgb(0 0 0 / 0.25)",
|
|
137
|
+
}),
|
|
138
|
+
when("& > svg", raw({
|
|
139
|
+
inlineSize: "1.5rem",
|
|
140
|
+
blockSize: "1.5rem",
|
|
141
|
+
marginInlineStart: "0.1875rem",
|
|
142
|
+
fill: "currentColor",
|
|
143
|
+
})),
|
|
144
|
+
], children: _jsx(PlayIcon, {}) }), _jsx("span", { "data-slot": "author-band-video-title", mix: [
|
|
145
|
+
raw({ "--ui-neutral-fg-emphasis": "#fff" }),
|
|
146
|
+
displayHeading(3),
|
|
147
|
+
raw({
|
|
148
|
+
position: "absolute",
|
|
149
|
+
insetInline: "1rem",
|
|
150
|
+
insetBlockEnd: "0.875rem",
|
|
151
|
+
zIndex: "1",
|
|
152
|
+
textShadow: "0 1px 2px rgb(0 0 0 / 0.4)",
|
|
153
|
+
}),
|
|
154
|
+
], children: title })] }), _jsxs("figcaption", { mix: [text("sm"), leading("snug"), fg("neutral.muted")], children: [title, " (", duration, ")"] })] }));
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* The video link's frame: a 16:9 still at the surface radius with the inset hairline, and a
|
|
159
|
+
* fade from transparent to 55% black over its lower part so the white title reads on any frame.
|
|
160
|
+
*/
|
|
161
|
+
function videoLink() {
|
|
162
|
+
return combine([
|
|
163
|
+
raw({
|
|
164
|
+
position: "relative",
|
|
165
|
+
display: "block",
|
|
166
|
+
aspectRatio: "16 / 9",
|
|
167
|
+
borderRadius: RADIUS,
|
|
168
|
+
overflow: "hidden",
|
|
169
|
+
backgroundColor: "var(--ui-neutral-bg-tint)",
|
|
170
|
+
textDecoration: "none",
|
|
171
|
+
outlineOffset: "2px",
|
|
172
|
+
}),
|
|
173
|
+
when("& > :is(img, svg, picture):first-child", raw({
|
|
174
|
+
display: "block",
|
|
175
|
+
inlineSize: "100%",
|
|
176
|
+
blockSize: "100%",
|
|
177
|
+
objectFit: "cover",
|
|
178
|
+
})),
|
|
179
|
+
when("&::after", raw({
|
|
180
|
+
content: '""',
|
|
181
|
+
position: "absolute",
|
|
182
|
+
inset: "0",
|
|
183
|
+
borderRadius: "inherit",
|
|
184
|
+
backgroundImage: "linear-gradient(transparent 40%, rgb(0 0 0 / 0.55))",
|
|
185
|
+
boxShadow: `inset 0 0 0 1px var(--ui-image-outline, rgb(0 0 0 / 0.1))`,
|
|
186
|
+
})),
|
|
187
|
+
when('& > [data-slot="author-band-video-play"]', motionSafe(raw({ transition: "scale 200ms" }))),
|
|
188
|
+
when('&:is(:hover, :focus-visible) > [data-slot="author-band-video-play"]', raw({ scale: "1.06" })),
|
|
189
|
+
]);
|
|
190
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Equal columns of claim cells — separate raised cards by default, or one
|
|
3
|
+
* hairline-ruled mosaic — for a purpose row, a claim strip or a product bento
|
|
4
|
+
* whose cells can lead with a fading illustration.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
import { Feature } from "./feature.js";
|
|
11
|
+
/**
|
|
12
|
+
* Prop types for {@link Bento} and its compound parts.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace Bento {
|
|
15
|
+
/**
|
|
16
|
+
* How many cells a wide grid puts on one row.
|
|
17
|
+
*/
|
|
18
|
+
type Columns = 2 | 3 | 4;
|
|
19
|
+
/**
|
|
20
|
+
* Grid chrome: separate raised `cards` with larger outer corners, or one
|
|
21
|
+
* `mosaic` box whose 1px gaps draw hairlines between flush cells.
|
|
22
|
+
*/
|
|
23
|
+
type Variant = Feature.GridVariant;
|
|
24
|
+
/**
|
|
25
|
+
* Title step: `lg`, 1.25rem rising to 1.5rem, for a bento's cells, or `base` for a
|
|
26
|
+
* dense grid of short claims.
|
|
27
|
+
*/
|
|
28
|
+
type TitleSize = "base" | "lg";
|
|
29
|
+
/**
|
|
30
|
+
* Props accepted by {@link Bento}.
|
|
31
|
+
*/
|
|
32
|
+
interface Props extends TagProps<"div"> {
|
|
33
|
+
/** Columns at the `lg` container. Defaults to {@link DEFAULT_COLUMNS}. */
|
|
34
|
+
columns?: Columns;
|
|
35
|
+
/** Grid chrome. Defaults to {@link DEFAULT_VARIANT}. */
|
|
36
|
+
variant?: Variant;
|
|
37
|
+
/** {@link Bento.Cell} children to lay out. */
|
|
38
|
+
children: RemixNode;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Props accepted by {@link Bento.Cell}.
|
|
42
|
+
*/
|
|
43
|
+
interface CellProps extends TagProps<"div"> {
|
|
44
|
+
/**
|
|
45
|
+
* Outer corners this cell rounds at the `lg` step, space separated
|
|
46
|
+
* (`"start-start end-start"`). Setting it on any cell hands every `lg`
|
|
47
|
+
* outer corner to the page, for cells that span columns.
|
|
48
|
+
*/
|
|
49
|
+
"data-corner"?: string;
|
|
50
|
+
/** Cell content: an optional {@link Bento.Media} or glyph, then title and body. */
|
|
51
|
+
children: RemixNode;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Props accepted by {@link Bento.Media}.
|
|
55
|
+
*/
|
|
56
|
+
interface MediaProps extends TagProps<"div"> {
|
|
57
|
+
/** Illustration or screenshot drawn edge to edge at the top of the cell. */
|
|
58
|
+
children: RemixNode;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Props accepted by {@link Bento.Title}.
|
|
62
|
+
*/
|
|
63
|
+
interface TitleProps extends TagProps<"h1"> {
|
|
64
|
+
/** Title step. Defaults to {@link DEFAULT_TITLE_SIZE}. */
|
|
65
|
+
size?: TitleSize;
|
|
66
|
+
/** Title copy for the cell. */
|
|
67
|
+
children: RemixNode;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props accepted by {@link Bento.Body}.
|
|
71
|
+
*/
|
|
72
|
+
interface BodyProps extends TagProps<"div"> {
|
|
73
|
+
/** Supporting copy for the cell; `<strong>` fragments render in the heading ink. */
|
|
74
|
+
children: RemixNode;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Bento grid of claim cells. The host is the named sizing container; an inner
|
|
79
|
+
* wrapper holds the tracks so the query can restyle a descendant: one column
|
|
80
|
+
* on a phone, two from the `md` container (36rem), `columns` from `lg` (48rem).
|
|
81
|
+
* Cell titles render one heading level below the band title.
|
|
82
|
+
*
|
|
83
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
84
|
+
* @returns The render function producing the bento's markup.
|
|
85
|
+
* @example
|
|
86
|
+
* <Bento columns={3}>
|
|
87
|
+
* <Bento.Cell>
|
|
88
|
+
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
89
|
+
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
90
|
+
* </Bento.Cell>
|
|
91
|
+
* </Bento>
|
|
92
|
+
*/
|
|
93
|
+
export declare function Bento(handle: Handle<Bento.Props>): () => import("remix/component").RemixElement;
|
|
94
|
+
export declare namespace Bento {
|
|
95
|
+
var Cell: (handle: Handle<Bento.CellProps>) => () => import("remix/component").RemixElement;
|
|
96
|
+
var Media: (handle: Handle<Bento.MediaProps>) => () => import("remix/component").RemixElement;
|
|
97
|
+
var Title: (handle: Handle<Bento.TitleProps>) => () => import("remix/component").RemixElement;
|
|
98
|
+
var Body: (handle: Handle<Bento.BodyProps>) => () => import("remix/component").RemixElement;
|
|
99
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
+
import { fg } from "@sdxc/u/color";
|
|
3
|
+
import { combine, raw, mergeMix } from "@sdxc/u/general";
|
|
4
|
+
import { container } from "@sdxc/u/layout";
|
|
5
|
+
import { at } from "@sdxc/u/responsive";
|
|
6
|
+
import { m } from "@sdxc/u/size";
|
|
7
|
+
import { when } from "@sdxc/u/state";
|
|
8
|
+
import { balance, leading, pretty, text, tracking, weight } from "@sdxc/u/typography";
|
|
9
|
+
import { HeadingScope, resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
10
|
+
import { landingEmphasis } from "../styles/landing.js";
|
|
11
|
+
import { Feature } from "./feature.js";
|
|
12
|
+
import { cardGrid, cardMedia, cardPadding } from "./styles/card-grid.js";
|
|
13
|
+
/** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
|
|
14
|
+
const DEFAULT_COLUMNS = 3;
|
|
15
|
+
/** Grid chrome {@link Bento} applies when `variant` is omitted. */
|
|
16
|
+
const DEFAULT_VARIANT = "cards";
|
|
17
|
+
/** Title step {@link Bento.Title} applies when `size` is omitted. */
|
|
18
|
+
const DEFAULT_TITLE_SIZE = "lg";
|
|
19
|
+
/** Named sizing container on the bento host that every column and padding step queries. */
|
|
20
|
+
const CONTAINER_NAME = "ui-landing-bento";
|
|
21
|
+
/** A bento grid in which some cell opens with something other than its title. */
|
|
22
|
+
const LEADING_BENTO = '[data-slot="bento-grid"]:has(> * > :first-child:not([data-slot="bento-title"]))';
|
|
23
|
+
/**
|
|
24
|
+
* Bento grid of claim cells. The host is the named sizing container; an inner
|
|
25
|
+
* wrapper holds the tracks so the query can restyle a descendant: one column
|
|
26
|
+
* on a phone, two from the `md` container (36rem), `columns` from `lg` (48rem).
|
|
27
|
+
* Cell titles render one heading level below the band title.
|
|
28
|
+
*
|
|
29
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
30
|
+
* @returns The render function producing the bento's markup.
|
|
31
|
+
* @example
|
|
32
|
+
* <Bento columns={3}>
|
|
33
|
+
* <Bento.Cell>
|
|
34
|
+
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
35
|
+
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
36
|
+
* </Bento.Cell>
|
|
37
|
+
* </Bento>
|
|
38
|
+
*/
|
|
39
|
+
export function Bento(handle) {
|
|
40
|
+
return () => {
|
|
41
|
+
let { children, columns, mix, variant, ...rest } = handle.props;
|
|
42
|
+
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
43
|
+
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
44
|
+
return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), "data-variant": resolvedVariant, mix: mergeMix(container(CONTAINER_NAME), mix), children: _jsx(HeadingScope, { children: _jsx("div", { "data-slot": "bento-grid", mix: [
|
|
45
|
+
cardGrid({
|
|
46
|
+
columns: resolvedColumns,
|
|
47
|
+
variant: resolvedVariant,
|
|
48
|
+
containerName: CONTAINER_NAME,
|
|
49
|
+
}),
|
|
50
|
+
], children: children }) }) }));
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* One bento cell, padded 1.5rem and 2.5rem from the `lg` container. Compose an optional
|
|
55
|
+
* {@link Bento.Media} or glyph first, then {@link Bento.Title} and {@link Bento.Body}; once
|
|
56
|
+
* any cell leads with one, cells share the row's lead, title and body tracks, so titles align.
|
|
57
|
+
*
|
|
58
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
59
|
+
* @returns The render function producing the cell's markup.
|
|
60
|
+
*/
|
|
61
|
+
Bento.Cell = function BentoCell(handle) {
|
|
62
|
+
return () => {
|
|
63
|
+
let { mix, ...rest } = handle.props;
|
|
64
|
+
return (_jsx("div", { ...rest, "data-slot": "bento-cell", mix: mergeMix([cellTracks(), cardPadding("1.5rem", "1.5rem", "2.5rem", CONTAINER_NAME)], mix) }));
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* A cell's stack in one rule: a single column spaced 0.75rem, which becomes a subgrid of
|
|
69
|
+
* three of the bento's rows (lead, title, body) when its title is a direct child and any
|
|
70
|
+
* cell in the bento leads with media or a glyph, so a row's titles share one line.
|
|
71
|
+
*/
|
|
72
|
+
function cellTracks() {
|
|
73
|
+
return combine([
|
|
74
|
+
raw({
|
|
75
|
+
display: "grid",
|
|
76
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
77
|
+
alignContent: "start",
|
|
78
|
+
rowGap: "0.75rem",
|
|
79
|
+
}),
|
|
80
|
+
when(`${LEADING_BENTO} > &:has(> [data-slot="bento-title"])`, [
|
|
81
|
+
raw({ gridRow: "span 3", gridTemplateRows: "subgrid" }),
|
|
82
|
+
when('& > [data-slot="bento-title"]', raw({ gridRow: "2" })),
|
|
83
|
+
when('& > [data-slot="bento-body"]', raw({ gridRow: "3" })),
|
|
84
|
+
]),
|
|
85
|
+
]);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Illustration at the top of the cell, bleeding past the cell padding and
|
|
89
|
+
* fading into the fill; hidden below the `md` container. Place it first.
|
|
90
|
+
*
|
|
91
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
92
|
+
* @returns The render function producing the media area.
|
|
93
|
+
*/
|
|
94
|
+
Bento.Media = function BentoMedia(handle) {
|
|
95
|
+
return () => {
|
|
96
|
+
let { mix, ...rest } = handle.props;
|
|
97
|
+
return _jsx("div", { ...rest, "data-slot": "bento-media", mix: mergeMix(cardMedia(), mix) });
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Cell title at the ambient heading depth, balanced across its lines: 1.25rem rising to
|
|
102
|
+
* 1.5rem on 2rem leading from the `md` container, or `base` semibold for dense claims.
|
|
103
|
+
*
|
|
104
|
+
* @param handle Runtime handle carrying the host heading's props.
|
|
105
|
+
* @returns The render function producing the title.
|
|
106
|
+
*/
|
|
107
|
+
Bento.Title = function BentoTitle(handle) {
|
|
108
|
+
return () => {
|
|
109
|
+
let { mix, size, ...rest } = handle.props;
|
|
110
|
+
let resolvedSize = size ?? DEFAULT_TITLE_SIZE;
|
|
111
|
+
let resolved = resolveHeadingLevel(handle);
|
|
112
|
+
let Tag = TAG_BY_LEVEL[resolved];
|
|
113
|
+
return (_jsx(Tag, { ...rest, "data-slot": "bento-title", "data-heading-level": resolved, "data-size": resolvedSize, mix: mergeMix([
|
|
114
|
+
m(0),
|
|
115
|
+
resolvedSize === "lg"
|
|
116
|
+
? [
|
|
117
|
+
combine([text("xl"), at("md", CONTAINER_NAME, text("2xl"))]),
|
|
118
|
+
tracking("tight"),
|
|
119
|
+
weight("medium"),
|
|
120
|
+
]
|
|
121
|
+
: [text("base"), weight("semibold")],
|
|
122
|
+
balance(),
|
|
123
|
+
fg("neutral.emphasis"),
|
|
124
|
+
], mix) }));
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Supporting copy under a bento title, with emphasis fragments in the heading ink.
|
|
129
|
+
*
|
|
130
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
131
|
+
* @returns The render function producing the body.
|
|
132
|
+
*/
|
|
133
|
+
Bento.Body = function BentoBody(handle) {
|
|
134
|
+
return () => {
|
|
135
|
+
let { mix, ...rest } = handle.props;
|
|
136
|
+
return (_jsx("div", { ...rest, "data-slot": "bento-body", mix: mergeMix([text("sm"), leading("relaxed"), pretty(), fg("neutral"), landingEmphasis()], mix) }));
|
|
137
|
+
};
|
|
138
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A "what's new" strip: recent releases as dated entries on one continuous hairline, each
|
|
3
|
+
* marked by a dot on the rule. It shows a product's shipping cadence in a single row, and
|
|
4
|
+
* on a phone the row scrolls sideways inside itself, one entry per snap.
|
|
5
|
+
*
|
|
6
|
+
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
7
|
+
* @copyright Sergio Xalambrí 2026
|
|
8
|
+
*/
|
|
9
|
+
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
10
|
+
/**
|
|
11
|
+
* Prop types for {@link ChangelogStrip} and its entries.
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace ChangelogStrip {
|
|
14
|
+
/**
|
|
15
|
+
* Column count at each container step; a missing step keeps the one below it, and a row
|
|
16
|
+
* with no count yet scrolls sideways.
|
|
17
|
+
*/
|
|
18
|
+
interface ColumnPlan {
|
|
19
|
+
/** Columns at every width, for a strip too short to scroll. */
|
|
20
|
+
base?: number;
|
|
21
|
+
/** Columns from the `md` container. */
|
|
22
|
+
md?: number;
|
|
23
|
+
/** Columns from the `lg` container. */
|
|
24
|
+
lg?: number;
|
|
25
|
+
/** Columns from the `xl` container. */
|
|
26
|
+
xl?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Props accepted by {@link ChangelogStrip}.
|
|
30
|
+
*/
|
|
31
|
+
interface Props extends Omit<TagProps<"div">, "title"> {
|
|
32
|
+
/** Optional heading over the row, at the level of the surrounding heading scope. */
|
|
33
|
+
title?: RemixNode;
|
|
34
|
+
/** Optional link beside the title, such as "View all →". */
|
|
35
|
+
action?: RemixNode;
|
|
36
|
+
/** Accessible name for the list when there is no visible title. */
|
|
37
|
+
"aria-label"?: string;
|
|
38
|
+
/** Two or more {@link ChangelogStrip.Entry} children, newest first. */
|
|
39
|
+
children: RemixNode;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Props accepted by {@link ChangelogStrip.Entry}.
|
|
43
|
+
*/
|
|
44
|
+
interface EntryProps extends Omit<TagProps<"li">, "title"> {
|
|
45
|
+
/** Machine-readable release date (`YYYY-MM-DD`), written to `<time dateTime>`. */
|
|
46
|
+
dateTime: string;
|
|
47
|
+
/** Date as the reader sees it, such as "Oct 28, 2026". */
|
|
48
|
+
date: RemixNode;
|
|
49
|
+
/** Release title. */
|
|
50
|
+
title: RemixNode;
|
|
51
|
+
/** Release page; when set, the whole entry is one link. */
|
|
52
|
+
href?: string;
|
|
53
|
+
/** Summary, clamped to two lines. */
|
|
54
|
+
children?: RemixNode;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Renders recent releases as an ordered list on one hairline. The column count comes from
|
|
59
|
+
* the entry count (see {@link changelogColumns}); below the first grid step the list is a
|
|
60
|
+
* snapping sideways row of ~80% wide entries that scrolls inside its own box.
|
|
61
|
+
*
|
|
62
|
+
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
63
|
+
* @returns The render function producing the strip.
|
|
64
|
+
* @example
|
|
65
|
+
* <ChangelogStrip title={t("changelog.title")} action={<a href="/changelog">{t("changelog.all")}</a>}>
|
|
66
|
+
* <ChangelogStrip.Entry dateTime="2026-10-28" date="Oct 28" title={t("cl.status")} href="/changelog/status">
|
|
67
|
+
* {t("cl.status.body")}
|
|
68
|
+
* </ChangelogStrip.Entry>
|
|
69
|
+
* </ChangelogStrip>
|
|
70
|
+
*/
|
|
71
|
+
export declare function ChangelogStrip(handle: Handle<ChangelogStrip.Props>): () => import("remix/component").RemixElement;
|
|
72
|
+
export declare namespace ChangelogStrip {
|
|
73
|
+
var Entry: (handle: Handle<ChangelogStrip.EntryProps>) => () => import("remix/component").RemixElement;
|
|
74
|
+
}
|