@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
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Numbered marketing steps for a “how it works” band. Counters are CSS-driven
|
|
3
|
-
* so the list stays pure markup; titles and descriptions stay on the page.
|
|
4
|
-
*
|
|
5
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
6
|
-
* @copyright Sergio Xalambrí 2026
|
|
7
|
-
*/
|
|
8
|
-
import type { Handle, Props as TagProps, RemixNode } from "remix/component";
|
|
9
|
-
/**
|
|
10
|
-
* Prop types for {@link StepList} and its compound parts.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace StepList {
|
|
13
|
-
/**
|
|
14
|
-
* Props accepted by {@link StepList}.
|
|
15
|
-
*/
|
|
16
|
-
interface Props extends TagProps<"ol"> {
|
|
17
|
-
/** {@link StepList.Item} children, numbered by CSS counters. */
|
|
18
|
-
children: RemixNode;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Props accepted by {@link StepList.Item}.
|
|
22
|
-
*/
|
|
23
|
-
interface ItemProps extends Omit<TagProps<"li">, "title"> {
|
|
24
|
-
/** Step title — rendered at the ambient heading depth. */
|
|
25
|
-
title: RemixNode;
|
|
26
|
-
/** Supporting copy under the title. */
|
|
27
|
-
children: RemixNode;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Lays numbered steps in a responsive three-column track. A sizing wrapper is
|
|
32
|
-
* the named container; the `<ol>` holds the grid and `@container` column tracks
|
|
33
|
-
* so the query can restyle a descendant. Collapses below `xl` (64rem).
|
|
34
|
-
* Connector lines appear between items only when the track is wide.
|
|
35
|
-
*
|
|
36
|
-
* @param handle Runtime handle carrying the host `<ol>`'s props.
|
|
37
|
-
* @returns The render function producing the list's markup.
|
|
38
|
-
* @example
|
|
39
|
-
* <StepList>
|
|
40
|
-
* <StepList.Item title={t("step.one")}>{t("step.one.body")}</StepList.Item>
|
|
41
|
-
* <StepList.Item title={t("step.two")}>{t("step.two.body")}</StepList.Item>
|
|
42
|
-
* </StepList>
|
|
43
|
-
*/
|
|
44
|
-
export declare function StepList(handle: Handle<StepList.Props>): () => import("remix/component").RemixElement;
|
|
45
|
-
export declare namespace StepList {
|
|
46
|
-
var Item: (handle: Handle<StepList.ItemProps>) => () => import("remix/component").RemixElement;
|
|
47
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
-
import { bg, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { counterIncrement, counterReset, pseudoContent, raw } from "@sdxc/u/general";
|
|
5
|
-
import { absolute, container, gap, grid, gridTemplate, inlineFlex, items, justify, relative, repeat, vstack, } from "@sdxc/u/layout";
|
|
6
|
-
import { at } from "@sdxc/u/responsive";
|
|
7
|
-
import { bs, is, m, mbe } from "@sdxc/u/size";
|
|
8
|
-
import { after, before, not } from "@sdxc/u/state";
|
|
9
|
-
import { leading, pretty, text, textAlign, weight } from "@sdxc/u/typography";
|
|
10
|
-
import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
11
|
-
/**
|
|
12
|
-
* Lays numbered steps in a responsive three-column track. A sizing wrapper is
|
|
13
|
-
* the named container; the `<ol>` holds the grid and `@container` column tracks
|
|
14
|
-
* so the query can restyle a descendant. Collapses below `xl` (64rem).
|
|
15
|
-
* Connector lines appear between items only when the track is wide.
|
|
16
|
-
*
|
|
17
|
-
* @param handle Runtime handle carrying the host `<ol>`'s props.
|
|
18
|
-
* @returns The render function producing the list's markup.
|
|
19
|
-
* @example
|
|
20
|
-
* <StepList>
|
|
21
|
-
* <StepList.Item title={t("step.one")}>{t("step.one.body")}</StepList.Item>
|
|
22
|
-
* <StepList.Item title={t("step.two")}>{t("step.two.body")}</StepList.Item>
|
|
23
|
-
* </StepList>
|
|
24
|
-
*/
|
|
25
|
-
export function StepList(handle) {
|
|
26
|
-
return () => {
|
|
27
|
-
let { children, mix, ...rest } = handle.props;
|
|
28
|
-
return (_jsx("div", { mix: [container("ui-marketing-step-list")], children: _jsx("ol", { ...rest, "data-slot": "step-list", mix: [
|
|
29
|
-
counterReset("ui-marketing-step"),
|
|
30
|
-
raw({ listStyle: "none", padding: "0", margin: "0" }),
|
|
31
|
-
grid(),
|
|
32
|
-
gap(8),
|
|
33
|
-
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
34
|
-
at("xl", "ui-marketing-step-list", gridTemplate({ columns: repeat(3, "minmax(0, 1fr)") })),
|
|
35
|
-
mix,
|
|
36
|
-
], children: children }) }));
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* One numbered step: a brand medallion, a title, and supporting copy.
|
|
41
|
-
*
|
|
42
|
-
* @param handle Runtime handle carrying the host `<li>`'s props.
|
|
43
|
-
* @returns The render function producing the step's markup.
|
|
44
|
-
*/
|
|
45
|
-
StepList.Item = function StepListItem(handle) {
|
|
46
|
-
return () => {
|
|
47
|
-
let { children, mix, title, ...rest } = handle.props;
|
|
48
|
-
let resolved = resolveHeadingLevel(handle);
|
|
49
|
-
let Tag = TAG_BY_LEVEL[resolved];
|
|
50
|
-
return (_jsxs("li", { ...rest, "data-slot": "step-list-item", mix: [
|
|
51
|
-
relative(),
|
|
52
|
-
vstack({ align: "center", gap: 4 }),
|
|
53
|
-
textAlign("center"),
|
|
54
|
-
counterIncrement("ui-marketing-step"),
|
|
55
|
-
before([
|
|
56
|
-
pseudoContent("counter(ui-marketing-step)"),
|
|
57
|
-
inlineFlex(),
|
|
58
|
-
items("center"),
|
|
59
|
-
justify("center"),
|
|
60
|
-
is(12),
|
|
61
|
-
bs(12),
|
|
62
|
-
mbe(2),
|
|
63
|
-
rounded("full"),
|
|
64
|
-
bg("brand.solid"),
|
|
65
|
-
fg("brand.onSolid"),
|
|
66
|
-
text("xl"),
|
|
67
|
-
weight("semibold"),
|
|
68
|
-
]),
|
|
69
|
-
not(":last-child", after([
|
|
70
|
-
pseudoContent('""'),
|
|
71
|
-
absolute(),
|
|
72
|
-
raw({
|
|
73
|
-
insetBlockStart: "1.5rem",
|
|
74
|
-
insetInlineStart: "calc(50% + 2rem)",
|
|
75
|
-
inlineSize: "calc(100% - 4rem)",
|
|
76
|
-
blockSize: "2px",
|
|
77
|
-
backgroundColor: "var(--ui-neutral-border)",
|
|
78
|
-
display: "none",
|
|
79
|
-
}),
|
|
80
|
-
at("xl", "ui-marketing-step-list", raw({ display: "block" })),
|
|
81
|
-
])),
|
|
82
|
-
mix,
|
|
83
|
-
], children: [_jsx(Tag, { "data-slot": "step-list-title", "data-heading-level": resolved, mix: [m(0), text("xl"), weight("medium"), fg("neutral.emphasis")], children: title }), _jsx("div", { mix: [text("base"), leading("relaxed"), pretty(), fg("neutral")], children: children })] }));
|
|
84
|
-
};
|
|
85
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
-
import { visuallyHidden } from "@sdxc/u/a11y";
|
|
3
|
-
import { bg, border, fg, outline } from "@sdxc/u/color";
|
|
4
|
-
import { rounded, transition } from "@sdxc/u/effects";
|
|
5
|
-
import { cursor, raw } from "@sdxc/u/general";
|
|
6
|
-
import { basis, center, flex, flexWrap, gap, hidden, inlineFlex, items, justify, } from "@sdxc/u/layout";
|
|
7
|
-
import { overflow } from "@sdxc/u/overflow";
|
|
8
|
-
import { p } from "@sdxc/u/size";
|
|
9
|
-
import { precededBy, when } from "@sdxc/u/state";
|
|
10
|
-
import { text, weight } from "@sdxc/u/typography";
|
|
11
|
-
/**
|
|
12
|
-
* Host for pill tabs and their panels. Nest {@link TabbedStage.Item} children;
|
|
13
|
-
* each item pairs a tab with the media it reveals.
|
|
14
|
-
*
|
|
15
|
-
* @param handle Runtime handle carrying the host `<div>`'s props and providing
|
|
16
|
-
* {@link TabbedStage.Context}.
|
|
17
|
-
* @returns The render function producing the stage's markup.
|
|
18
|
-
* @example
|
|
19
|
-
* <TabbedStage name="demo" aria-label={t("stage.label")}>
|
|
20
|
-
* <TabbedStage.Item value="inbox" label={t("stage.inbox")} icon={inboxIcon} defaultChecked>
|
|
21
|
-
* {inboxShot}
|
|
22
|
-
* </TabbedStage.Item>
|
|
23
|
-
* <TabbedStage.Item value="board" label={t("stage.board")} icon={boardIcon}>
|
|
24
|
-
* {boardShot}
|
|
25
|
-
* </TabbedStage.Item>
|
|
26
|
-
* </TabbedStage>
|
|
27
|
-
*/
|
|
28
|
-
export function TabbedStage(handle) {
|
|
29
|
-
return () => {
|
|
30
|
-
let { mix, name, ...rest } = handle.props;
|
|
31
|
-
handle.context.set({ name });
|
|
32
|
-
return (_jsx("div", { ...rest, "data-slot": "tabbed-stage", "data-name": name, mix: [flex(), flexWrap("wrap"), justify("center"), gap(2, 6), mix] }));
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* One tab + panel pair. The pill label sits in the tab row; the panel spans
|
|
37
|
-
* the full stage width and reveals when its adjacent radio is checked.
|
|
38
|
-
*
|
|
39
|
-
* @param handle Runtime handle carrying the item's props.
|
|
40
|
-
* @returns The render function producing the item's markup.
|
|
41
|
-
*/
|
|
42
|
-
TabbedStage.Item = function TabbedStageItem(handle) {
|
|
43
|
-
return () => {
|
|
44
|
-
let { children, defaultChecked, icon, label, mix, value, ...rest } = handle.props;
|
|
45
|
-
let context = handle.context.get(TabbedStage);
|
|
46
|
-
let groupName = context?.name ?? "tabbed-stage";
|
|
47
|
-
let inputId = `${groupName}-tab-${value}`;
|
|
48
|
-
return (_jsxs("div", { ...rest, "data-slot": "tabbed-stage-item", "data-value": value, mix: [raw({ display: "contents" }), mix], children: [_jsx("input", { type: "radio", name: groupName, id: inputId, value: value, defaultChecked: defaultChecked, mix: [visuallyHidden()] }), _jsxs("label", { htmlFor: inputId, mix: [
|
|
49
|
-
raw({ order: -1 }),
|
|
50
|
-
inlineFlex(),
|
|
51
|
-
items("center"),
|
|
52
|
-
justify("center"),
|
|
53
|
-
gap(2),
|
|
54
|
-
p(2, 3.5),
|
|
55
|
-
rounded("full"),
|
|
56
|
-
text("sm"),
|
|
57
|
-
weight("medium"),
|
|
58
|
-
fg("neutral"),
|
|
59
|
-
bg("neutral.tint"),
|
|
60
|
-
border({ color: "neutral", width: 1, style: "solid" }),
|
|
61
|
-
cursor("pointer"),
|
|
62
|
-
transition("color, background-color, border-color"),
|
|
63
|
-
precededBy("input:checked", [
|
|
64
|
-
bg("brand.solid"),
|
|
65
|
-
fg("brand.onSolid"),
|
|
66
|
-
border({ color: "brand", width: 1, style: "solid" }),
|
|
67
|
-
]),
|
|
68
|
-
precededBy("input:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
69
|
-
], children: [icon ? _jsx("span", { mix: [inlineFlex(), center()], children: icon }) : null, label] }), _jsx("div", { "data-slot": "tabbed-stage-panel", mix: [
|
|
70
|
-
basis("100%"),
|
|
71
|
-
hidden(),
|
|
72
|
-
overflow("hidden"),
|
|
73
|
-
rounded("xl"),
|
|
74
|
-
when(":is(input:checked) + label + &", raw({ display: "block" })),
|
|
75
|
-
], children: children })] }));
|
|
76
|
-
};
|
|
77
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Style-mixin factories for marketing / landing bands: content measure and
|
|
3
|
-
* gutters, section spacing, band tones, display type, lead copy, hairlines,
|
|
4
|
-
* and logo-cloud marks. Pair a band host with `viewReveal()` from the
|
|
5
|
-
* animations entry so sections enter on scroll; reduced-motion is already
|
|
6
|
-
* collapsed there.
|
|
7
|
-
*
|
|
8
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
|
-
* @copyright Sergio Xalambrí 2026
|
|
10
|
-
*/
|
|
11
|
-
import type { ElementProps, MixinDescriptor } from "remix/component";
|
|
12
|
-
import type { CSSStyles } from "../utils/css-styles.js";
|
|
13
|
-
/**
|
|
14
|
-
* How much block padding a marketing band leaves around its content.
|
|
15
|
-
* `"hero"` is the first viewport, `"normal"` the repeating mid-page rhythm,
|
|
16
|
-
* `"compact"` a tighter strip such as a proof row.
|
|
17
|
-
*/
|
|
18
|
-
export type MarketingSectionSpacing = "hero" | "normal" | "compact";
|
|
19
|
-
/**
|
|
20
|
-
* What sits behind a marketing band: nothing, a quiet tint, a faded grid, or
|
|
21
|
-
* an inverted solid for a closing call-to-action.
|
|
22
|
-
*/
|
|
23
|
-
export type MarketingBandTone = "plain" | "tinted" | "grid" | "inverse";
|
|
24
|
-
/**
|
|
25
|
-
* Outline depth {@link displayHeading} sizes for: `1` is the page H1,
|
|
26
|
-
* `2` a section chapter (~40–48px), `3` a quieter in-band title.
|
|
27
|
-
*/
|
|
28
|
-
export type MarketingDisplayLevel = 1 | 2 | 3;
|
|
29
|
-
/**
|
|
30
|
-
* Centers a marketing content column at `--ui-marketing-measure` and pads
|
|
31
|
-
* its inline edges from `--ui-marketing-gutter`, stepping 1rem → 1.5rem → 2rem
|
|
32
|
-
* as the nearest container grows past `md` and `lg`.
|
|
33
|
-
*
|
|
34
|
-
* @returns A `css()` mixin ready for a content wrapper's `mix` prop.
|
|
35
|
-
* @example
|
|
36
|
-
* <div mix={[marketingContainer()]}>{children}</div>;
|
|
37
|
-
*/
|
|
38
|
-
export declare function marketingContainer<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
39
|
-
styles: CSSStyles
|
|
40
|
-
], ElementProps>;
|
|
41
|
-
/**
|
|
42
|
-
* Applies the band's block padding from the marketing section-space tokens.
|
|
43
|
-
*
|
|
44
|
-
* @param spacing Which of the three steps to apply. Defaults to `"normal"`.
|
|
45
|
-
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
46
|
-
* @example
|
|
47
|
-
* <section mix={[marketingSectionSpace("hero")]}>{children}</section>;
|
|
48
|
-
*/
|
|
49
|
-
export declare function marketingSectionSpace<Node extends Element = Element>(spacing?: MarketingSectionSpacing): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
50
|
-
/**
|
|
51
|
-
* Paints a marketing band's background: a quiet neutral tint, a faded grid,
|
|
52
|
-
* an inverted solid, or nothing for `"plain"`.
|
|
53
|
-
*
|
|
54
|
-
* @param tone Which fill to apply. Defaults to `"plain"`.
|
|
55
|
-
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
56
|
-
* @example
|
|
57
|
-
* <section mix={[marketingBandTone("tinted"), marketingSectionSpace()]}>{children}</section>;
|
|
58
|
-
* @example
|
|
59
|
-
* // Pair with viewReveal so the band enters as it scrolls into view:
|
|
60
|
-
* // mix={[marketingBandTone("grid"), viewReveal()]}
|
|
61
|
-
*/
|
|
62
|
-
export declare function marketingBandTone<Node extends Element = Element>(tone?: MarketingBandTone): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
63
|
-
/**
|
|
64
|
-
* Sets display typography for a marketing headline: the optional display
|
|
65
|
-
* family, light weight, tight tracking, and near-1.0 leading from the
|
|
66
|
-
* marketing tokens, with size stepping by outline depth.
|
|
67
|
-
*
|
|
68
|
-
* @param level Outline depth. Defaults to `1` (page H1).
|
|
69
|
-
* @returns A `css()` mixin ready for a heading's `mix` prop.
|
|
70
|
-
* @example
|
|
71
|
-
* <h1 mix={[displayHeading()]}>{title}</h1>;
|
|
72
|
-
* @example
|
|
73
|
-
* <h2 mix={[displayHeading(2)]}>{chapter}</h2>;
|
|
74
|
-
*/
|
|
75
|
-
export declare function displayHeading<Node extends Element = Element>(level?: MarketingDisplayLevel): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>;
|
|
76
|
-
/**
|
|
77
|
-
* Muted supporting copy under a marketing headline: lead size and measure,
|
|
78
|
-
* pretty wrapping, and balanced lines.
|
|
79
|
-
*
|
|
80
|
-
* @returns A `css()` mixin ready for a lead paragraph's `mix` prop.
|
|
81
|
-
* @example
|
|
82
|
-
* <p mix={[marketingLead()]}>{description}</p>;
|
|
83
|
-
*/
|
|
84
|
-
export declare function marketingLead<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
85
|
-
styles: CSSStyles
|
|
86
|
-
], ElementProps>;
|
|
87
|
-
/**
|
|
88
|
-
* A low-contrast 1px rule along the block-start edge — the hairline a sticky
|
|
89
|
-
* header, footer, or band uses to separate itself from what sits above.
|
|
90
|
-
*
|
|
91
|
-
* @returns A `css()` mixin ready for a host element's `mix` prop.
|
|
92
|
-
* @example
|
|
93
|
-
* <header mix={[marketingHairline()]}>{nav}</header>;
|
|
94
|
-
*/
|
|
95
|
-
export declare function marketingHairline<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
96
|
-
styles: CSSStyles
|
|
97
|
-
], ElementProps>;
|
|
98
|
-
/**
|
|
99
|
-
* Forces a logo-cloud mark to `--ui-marketing-logo-height` with muted
|
|
100
|
-
* currentColor treatment so adopter marks read as one quiet row.
|
|
101
|
-
*
|
|
102
|
-
* @returns A `css()` mixin ready for an `img` or inline SVG's `mix` prop.
|
|
103
|
-
* @example
|
|
104
|
-
* <img src={logo} alt="" mix={[logoCloudMark()]} />;
|
|
105
|
-
*/
|
|
106
|
-
export declare function logoCloudMark<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
107
|
-
styles: CSSStyles
|
|
108
|
-
], ElementProps>;
|
|
109
|
-
/**
|
|
110
|
-
* Corner radius and soft elevation for a solid marketing CTA. Compose onto a
|
|
111
|
-
* {@link Button} or {@link LinkButton} in a hero {@link CtaGroup}; override
|
|
112
|
-
* `--ui-marketing-cta-radius` per brand for pill (`9999px`) vs soft-rect.
|
|
113
|
-
*
|
|
114
|
-
* @returns A `css()` mixin ready for a CTA control's `mix` prop.
|
|
115
|
-
* @example
|
|
116
|
-
* <Button size="lg" color="brand" mix={[marketingCtaChrome()]}>{label}</Button>;
|
|
117
|
-
*/
|
|
118
|
-
export declare function marketingCtaChrome<Node extends Element = Element>(): MixinDescriptor<Node, [
|
|
119
|
-
styles: CSSStyles
|
|
120
|
-
], ElementProps>;
|
package/dist/styles/marketing.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Style-mixin factories for marketing / landing bands: content measure and
|
|
3
|
-
* gutters, section spacing, band tones, display type, lead copy, hairlines,
|
|
4
|
-
* and logo-cloud marks. Pair a band host with `viewReveal()` from the
|
|
5
|
-
* animations entry so sections enter on scroll; reduced-motion is already
|
|
6
|
-
* collapsed there.
|
|
7
|
-
*
|
|
8
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
|
-
* @copyright Sergio Xalambrí 2026
|
|
10
|
-
*/
|
|
11
|
-
import { bg, borderEdge, fg } from "@sdxc/u/color";
|
|
12
|
-
import { opacity } from "@sdxc/u/effects";
|
|
13
|
-
import { combine, raw, var as varUtility } from "@sdxc/u/general";
|
|
14
|
-
import { relative } from "@sdxc/u/layout";
|
|
15
|
-
import { at, dark } from "@sdxc/u/responsive";
|
|
16
|
-
import { bs, is, maxIs, mi, pi } from "@sdxc/u/size";
|
|
17
|
-
import { before } from "@sdxc/u/state";
|
|
18
|
-
import { balance, font, pretty } from "@sdxc/u/typography";
|
|
19
|
-
/** Max content width a marketing column settles at. */
|
|
20
|
-
const MEASURE = varUtility("ui-marketing-measure", "72rem");
|
|
21
|
-
/** Inline padding at the narrowest container step. */
|
|
22
|
-
const GUTTER = varUtility("ui-marketing-gutter", "1rem");
|
|
23
|
-
/** Block padding for a normal marketing band. */
|
|
24
|
-
const SECTION_SPACE = varUtility("ui-marketing-section-space", "6rem");
|
|
25
|
-
/** Block padding for a compact marketing band. */
|
|
26
|
-
const SECTION_SPACE_COMPACT = varUtility("ui-marketing-section-space-compact", "4rem");
|
|
27
|
-
/** Block padding for a hero marketing band. */
|
|
28
|
-
const SECTION_SPACE_HERO = varUtility("ui-marketing-section-space-hero", "8rem");
|
|
29
|
-
/** Letter-spacing for display headlines. */
|
|
30
|
-
const DISPLAY_TRACKING = varUtility("ui-marketing-display-tracking", "-0.04em");
|
|
31
|
-
/** Font weight for display headlines. */
|
|
32
|
-
const DISPLAY_WEIGHT = varUtility("ui-marketing-display-weight", "500");
|
|
33
|
-
/** Line-height for display headlines. */
|
|
34
|
-
const DISPLAY_LEADING = varUtility("ui-marketing-display-leading", "1");
|
|
35
|
-
/** Max width of supporting lead copy under a headline. */
|
|
36
|
-
const LEAD_MEASURE = varUtility("ui-marketing-lead-measure", "40rem");
|
|
37
|
-
/** Font size of supporting lead copy. */
|
|
38
|
-
const LEAD_SIZE = varUtility("ui-marketing-lead-size", "1.125rem");
|
|
39
|
-
/** Font size of a marketing section H2 (chapter). */
|
|
40
|
-
const CHAPTER_SIZE = varUtility("ui-marketing-chapter-size", "2.75rem");
|
|
41
|
-
/** Forced height of a logo-cloud mark. */
|
|
42
|
-
const LOGO_HEIGHT = varUtility("ui-marketing-logo-height", "1rem");
|
|
43
|
-
/** Default spacing step {@link marketingSectionSpace} applies. */
|
|
44
|
-
const DEFAULT_SECTION_SPACING = "normal";
|
|
45
|
-
/** Default band fill {@link marketingBandTone} applies. */
|
|
46
|
-
const DEFAULT_BAND_TONE = "plain";
|
|
47
|
-
/** Default outline depth {@link displayHeading} draws at. */
|
|
48
|
-
const DEFAULT_DISPLAY_LEVEL = 1;
|
|
49
|
-
/**
|
|
50
|
-
* Centers a marketing content column at `--ui-marketing-measure` and pads
|
|
51
|
-
* its inline edges from `--ui-marketing-gutter`, stepping 1rem → 1.5rem → 2rem
|
|
52
|
-
* as the nearest container grows past `md` and `lg`.
|
|
53
|
-
*
|
|
54
|
-
* @returns A `css()` mixin ready for a content wrapper's `mix` prop.
|
|
55
|
-
* @example
|
|
56
|
-
* <div mix={[marketingContainer()]}>{children}</div>;
|
|
57
|
-
*/
|
|
58
|
-
export function marketingContainer() {
|
|
59
|
-
return combine([
|
|
60
|
-
maxIs(MEASURE),
|
|
61
|
-
mi("auto"),
|
|
62
|
-
pi(GUTTER),
|
|
63
|
-
at("md", pi("1.5rem")),
|
|
64
|
-
at("lg", pi("2rem")),
|
|
65
|
-
]);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Applies the band's block padding from the marketing section-space tokens.
|
|
69
|
-
*
|
|
70
|
-
* @param spacing Which of the three steps to apply. Defaults to `"normal"`.
|
|
71
|
-
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
72
|
-
* @example
|
|
73
|
-
* <section mix={[marketingSectionSpace("hero")]}>{children}</section>;
|
|
74
|
-
*/
|
|
75
|
-
export function marketingSectionSpace(spacing = DEFAULT_SECTION_SPACING) {
|
|
76
|
-
let padding = SECTION_SPACE;
|
|
77
|
-
if (spacing === "hero")
|
|
78
|
-
padding = SECTION_SPACE_HERO;
|
|
79
|
-
if (spacing === "compact")
|
|
80
|
-
padding = SECTION_SPACE_COMPACT;
|
|
81
|
-
return raw({ paddingBlock: padding });
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Paints a marketing band's background: a quiet neutral tint, a faded grid,
|
|
85
|
-
* an inverted solid, or nothing for `"plain"`.
|
|
86
|
-
*
|
|
87
|
-
* @param tone Which fill to apply. Defaults to `"plain"`.
|
|
88
|
-
* @returns A `css()` mixin ready for a band host's `mix` prop.
|
|
89
|
-
* @example
|
|
90
|
-
* <section mix={[marketingBandTone("tinted"), marketingSectionSpace()]}>{children}</section>;
|
|
91
|
-
* @example
|
|
92
|
-
* // Pair with viewReveal so the band enters as it scrolls into view:
|
|
93
|
-
* // mix={[marketingBandTone("grid"), viewReveal()]}
|
|
94
|
-
*/
|
|
95
|
-
export function marketingBandTone(tone = DEFAULT_BAND_TONE) {
|
|
96
|
-
switch (tone) {
|
|
97
|
-
case "tinted":
|
|
98
|
-
return combine([
|
|
99
|
-
bg("color.neutral.100"),
|
|
100
|
-
dark(bg("color.neutral.900")),
|
|
101
|
-
raw({
|
|
102
|
-
backgroundImage: "radial-gradient(60% 70% at 85% 0%, color-mix(in oklch, var(--ui-brand-bg-solid) 14%, transparent), transparent 70%)",
|
|
103
|
-
}),
|
|
104
|
-
]);
|
|
105
|
-
case "grid":
|
|
106
|
-
return combine([
|
|
107
|
-
relative(),
|
|
108
|
-
before(raw({
|
|
109
|
-
content: '""',
|
|
110
|
-
position: "absolute",
|
|
111
|
-
inset: "0",
|
|
112
|
-
zIndex: "-1",
|
|
113
|
-
backgroundImage: "linear-gradient(to right, var(--ui-neutral-border) 1px, transparent 1px), linear-gradient(to bottom, var(--ui-neutral-border) 1px, transparent 1px)",
|
|
114
|
-
backgroundSize: "3rem 3rem",
|
|
115
|
-
opacity: "0.55",
|
|
116
|
-
maskImage: "radial-gradient(70% 80% at 70% 40%, black, transparent 75%)",
|
|
117
|
-
WebkitMaskImage: "radial-gradient(70% 80% at 70% 40%, black, transparent 75%)",
|
|
118
|
-
})),
|
|
119
|
-
]);
|
|
120
|
-
case "inverse":
|
|
121
|
-
return combine([bg("neutral.solid"), fg("neutral.onSolid")]);
|
|
122
|
-
default:
|
|
123
|
-
return raw({});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Sets display typography for a marketing headline: the optional display
|
|
128
|
-
* family, light weight, tight tracking, and near-1.0 leading from the
|
|
129
|
-
* marketing tokens, with size stepping by outline depth.
|
|
130
|
-
*
|
|
131
|
-
* @param level Outline depth. Defaults to `1` (page H1).
|
|
132
|
-
* @returns A `css()` mixin ready for a heading's `mix` prop.
|
|
133
|
-
* @example
|
|
134
|
-
* <h1 mix={[displayHeading()]}>{title}</h1>;
|
|
135
|
-
* @example
|
|
136
|
-
* <h2 mix={[displayHeading(2)]}>{chapter}</h2>;
|
|
137
|
-
*/
|
|
138
|
-
export function displayHeading(level = DEFAULT_DISPLAY_LEVEL) {
|
|
139
|
-
let size = varUtility("ui-text-xl", "1.25rem");
|
|
140
|
-
if (level === 1)
|
|
141
|
-
size = varUtility("ui-text-5xl", "3rem");
|
|
142
|
-
if (level === 2)
|
|
143
|
-
size = CHAPTER_SIZE;
|
|
144
|
-
return combine([
|
|
145
|
-
font("display"),
|
|
146
|
-
fg("neutral.emphasis"),
|
|
147
|
-
balance(),
|
|
148
|
-
raw({
|
|
149
|
-
fontWeight: DISPLAY_WEIGHT,
|
|
150
|
-
letterSpacing: DISPLAY_TRACKING,
|
|
151
|
-
lineHeight: DISPLAY_LEADING,
|
|
152
|
-
fontSize: size,
|
|
153
|
-
margin: "0",
|
|
154
|
-
}),
|
|
155
|
-
level === 1 ? at("lg", raw({ fontSize: varUtility("ui-text-7xl", "4.5rem") })) : [],
|
|
156
|
-
level === 2 ? at("md", raw({ fontSize: varUtility("ui-text-5xl", "3rem") })) : [],
|
|
157
|
-
]);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Muted supporting copy under a marketing headline: lead size and measure,
|
|
161
|
-
* pretty wrapping, and balanced lines.
|
|
162
|
-
*
|
|
163
|
-
* @returns A `css()` mixin ready for a lead paragraph's `mix` prop.
|
|
164
|
-
* @example
|
|
165
|
-
* <p mix={[marketingLead()]}>{description}</p>;
|
|
166
|
-
*/
|
|
167
|
-
export function marketingLead() {
|
|
168
|
-
return combine([
|
|
169
|
-
fg("neutral.muted"),
|
|
170
|
-
pretty(),
|
|
171
|
-
raw({
|
|
172
|
-
fontSize: LEAD_SIZE,
|
|
173
|
-
maxInlineSize: LEAD_MEASURE,
|
|
174
|
-
lineHeight: "1.625",
|
|
175
|
-
margin: "0",
|
|
176
|
-
}),
|
|
177
|
-
]);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* A low-contrast 1px rule along the block-start edge — the hairline a sticky
|
|
181
|
-
* header, footer, or band uses to separate itself from what sits above.
|
|
182
|
-
*
|
|
183
|
-
* @returns A `css()` mixin ready for a host element's `mix` prop.
|
|
184
|
-
* @example
|
|
185
|
-
* <header mix={[marketingHairline()]}>{nav}</header>;
|
|
186
|
-
*/
|
|
187
|
-
export function marketingHairline() {
|
|
188
|
-
return borderEdge("block-start", { color: "neutral", width: 1, style: "solid" });
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Forces a logo-cloud mark to `--ui-marketing-logo-height` with muted
|
|
192
|
-
* currentColor treatment so adopter marks read as one quiet row.
|
|
193
|
-
*
|
|
194
|
-
* @returns A `css()` mixin ready for an `img` or inline SVG's `mix` prop.
|
|
195
|
-
* @example
|
|
196
|
-
* <img src={logo} alt="" mix={[logoCloudMark()]} />;
|
|
197
|
-
*/
|
|
198
|
-
export function logoCloudMark() {
|
|
199
|
-
return combine([
|
|
200
|
-
bs(LOGO_HEIGHT),
|
|
201
|
-
is("auto"),
|
|
202
|
-
opacity(65),
|
|
203
|
-
raw({
|
|
204
|
-
objectFit: "contain",
|
|
205
|
-
color: "currentColor",
|
|
206
|
-
}),
|
|
207
|
-
]);
|
|
208
|
-
}
|
|
209
|
-
/** Soft elevation a solid marketing CTA carries over the band behind it. */
|
|
210
|
-
const CTA_SHADOW = "0 1px 2px color-mix(in oklab, CanvasText 6%, transparent), 0 4px 12px color-mix(in oklab, CanvasText 8%, transparent)";
|
|
211
|
-
/**
|
|
212
|
-
* Corner radius and soft elevation for a solid marketing CTA. Compose onto a
|
|
213
|
-
* {@link Button} or {@link LinkButton} in a hero {@link CtaGroup}; override
|
|
214
|
-
* `--ui-marketing-cta-radius` per brand for pill (`9999px`) vs soft-rect.
|
|
215
|
-
*
|
|
216
|
-
* @returns A `css()` mixin ready for a CTA control's `mix` prop.
|
|
217
|
-
* @example
|
|
218
|
-
* <Button size="lg" color="brand" mix={[marketingCtaChrome()]}>{label}</Button>;
|
|
219
|
-
*/
|
|
220
|
-
export function marketingCtaChrome() {
|
|
221
|
-
return raw({
|
|
222
|
-
borderRadius: "var(--ui-marketing-cta-radius, 0.5rem)",
|
|
223
|
-
boxShadow: CTA_SHADOW,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The border, tinted background, and emphasized foreground one semantic
|
|
3
|
-
* color role contributes to a bordered, tinted panel — a full-width status
|
|
4
|
-
* or placeholder panel's coloring for a single `&[data-color="..."]` branch
|
|
5
|
-
* — read from that color's own `--ui-*` variables, so the panel follows
|
|
6
|
-
* whatever values the active theme assigns them.
|
|
7
|
-
*
|
|
8
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
|
-
* @copyright Sergio Xalambrí 2026
|
|
10
|
-
*/
|
|
11
|
-
import type { SemanticColor } from "./semantic-color.js";
|
|
12
|
-
/**
|
|
13
|
-
* The `borderColor`, `backgroundColor`, and `color` declarations a tinted
|
|
14
|
-
* panel sets for one {@link SemanticColor}.
|
|
15
|
-
*/
|
|
16
|
-
export interface SemanticColorPanelStyle {
|
|
17
|
-
/** Border color, read from that color's `--ui-*-border` variable. */
|
|
18
|
-
borderColor: string;
|
|
19
|
-
/** Tinted background color, read from that color's `--ui-*-bg-tint` variable. */
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
/** Emphasized foreground color, read from that color's `--ui-*-fg-emphasis` variable. */
|
|
22
|
-
color: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Builds the border, tinted background, and emphasized foreground one
|
|
26
|
-
* semantic color contributes to a tinted panel, each read from that color's
|
|
27
|
-
* own `--ui-*` variables.
|
|
28
|
-
*
|
|
29
|
-
* @param color The semantic color to build the style for.
|
|
30
|
-
* @returns The `borderColor`, `backgroundColor`, and `color` declarations for `color`.
|
|
31
|
-
* @example
|
|
32
|
-
* semanticColorPanelStyle("danger");
|
|
33
|
-
* // { borderColor: "var(--ui-danger-border)", backgroundColor: "var(--ui-danger-bg-tint)", color: "var(--ui-danger-fg-emphasis)" }
|
|
34
|
-
*/
|
|
35
|
-
export declare function semanticColorPanelStyle(color: SemanticColor): SemanticColorPanelStyle;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The border, tinted background, and emphasized foreground one semantic
|
|
3
|
-
* color role contributes to a bordered, tinted panel — a full-width status
|
|
4
|
-
* or placeholder panel's coloring for a single `&[data-color="..."]` branch
|
|
5
|
-
* — read from that color's own `--ui-*` variables, so the panel follows
|
|
6
|
-
* whatever values the active theme assigns them.
|
|
7
|
-
*
|
|
8
|
-
* @author [Sergio Xalambrí](https://sergiodxa.com)
|
|
9
|
-
* @copyright Sergio Xalambrí 2026
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Builds the border, tinted background, and emphasized foreground one
|
|
13
|
-
* semantic color contributes to a tinted panel, each read from that color's
|
|
14
|
-
* own `--ui-*` variables.
|
|
15
|
-
*
|
|
16
|
-
* @param color The semantic color to build the style for.
|
|
17
|
-
* @returns The `borderColor`, `backgroundColor`, and `color` declarations for `color`.
|
|
18
|
-
* @example
|
|
19
|
-
* semanticColorPanelStyle("danger");
|
|
20
|
-
* // { borderColor: "var(--ui-danger-border)", backgroundColor: "var(--ui-danger-bg-tint)", color: "var(--ui-danger-fg-emphasis)" }
|
|
21
|
-
*/
|
|
22
|
-
export function semanticColorPanelStyle(color) {
|
|
23
|
-
return {
|
|
24
|
-
borderColor: `var(--ui-${color}-border)`,
|
|
25
|
-
backgroundColor: `var(--ui-${color}-bg-tint)`,
|
|
26
|
-
color: `var(--ui-${color}-fg-emphasis)`,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|