@sdxc/ui 2026.10.30 → 2026.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +187 -113
- package/dist/app/app-shell-toggle.d.ts +31 -0
- package/dist/app/app-shell-toggle.js +43 -0
- package/dist/app/app-shell.d.ts +131 -0
- package/dist/app/app-shell.js +542 -0
- package/dist/app/auto-refresh.d.ts +104 -0
- package/dist/app/auto-refresh.js +126 -0
- package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
- package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
- package/dist/app/behaviors/refresh-schedule.js +95 -0
- package/dist/app/behaviors/shortcuts.d.ts +175 -0
- package/dist/app/behaviors/shortcuts.js +401 -0
- package/dist/{behaviors → app/behaviors}/toaster.d.ts +31 -2
- package/dist/{behaviors → app/behaviors}/toaster.js +63 -6
- package/dist/{components → app}/chart.d.ts +63 -9
- package/dist/{components → app}/chart.js +222 -40
- package/dist/app/command-palette.d.ts +132 -0
- package/dist/app/command-palette.js +181 -0
- package/dist/{components → app}/context-menu.d.ts +2 -2
- package/dist/{components → app}/context-menu.js +8 -7
- package/dist/app/danger-zone.d.ts +66 -0
- package/dist/app/danger-zone.js +66 -0
- package/dist/app/detail-sheet.d.ts +119 -0
- package/dist/app/detail-sheet.js +173 -0
- package/dist/{components → app}/drop-indicator.js +3 -3
- package/dist/{components → app}/drop-zone.d.ts +2 -1
- package/dist/{components → app}/drop-zone.js +7 -4
- package/dist/app/editor-layout.d.ts +69 -0
- package/dist/app/editor-layout.js +143 -0
- package/dist/app/empty.d.ts +128 -0
- package/dist/app/empty.js +248 -0
- package/dist/{components → app}/file-trigger.js +2 -2
- package/dist/app/filter-bar.d.ts +169 -0
- package/dist/app/filter-bar.js +346 -0
- package/dist/{components → app}/grid-list.d.ts +1 -1
- package/dist/{components → app}/grid-list.js +16 -18
- package/dist/app/index.d.ts +92 -0
- package/dist/app/index.js +92 -0
- package/dist/app/keyboard-help.d.ts +66 -0
- package/dist/app/keyboard-help.js +56 -0
- package/dist/{components → app}/menubar.js +5 -7
- package/dist/app/mixins/app-shell-controls.d.ts +46 -0
- package/dist/app/mixins/app-shell-controls.js +131 -0
- package/dist/app/mixins/auto-refresh.d.ts +29 -0
- package/dist/app/mixins/auto-refresh.js +66 -0
- package/dist/app/mixins/command-palette.d.ts +56 -0
- package/dist/app/mixins/command-palette.js +297 -0
- package/dist/app/mixins/copy-permalink.d.ts +26 -0
- package/dist/app/mixins/copy-permalink.js +54 -0
- package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
- package/dist/app/mixins/detail-sheet-keys.js +88 -0
- package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
- package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
- package/dist/app/mixins/escape-link.d.ts +17 -0
- package/dist/app/mixins/escape-link.js +35 -0
- package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
- package/dist/app/mixins/keyboard-help.d.ts +38 -0
- package/dist/app/mixins/keyboard-help.js +51 -0
- package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
- package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
- package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
- package/dist/app/mixins/range-picker-keys.d.ts +18 -0
- package/dist/app/mixins/range-picker-keys.js +94 -0
- package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
- package/dist/app/mixins/row-navigation.d.ts +85 -0
- package/dist/app/mixins/row-navigation.js +208 -0
- package/dist/app/mixins/save-bar-sync.d.ts +27 -0
- package/dist/app/mixins/save-bar-sync.js +106 -0
- package/dist/app/mixins/save-shortcut.d.ts +47 -0
- package/dist/app/mixins/save-shortcut.js +101 -0
- package/dist/app/mixins/save-status-sync.d.ts +77 -0
- package/dist/app/mixins/save-status-sync.js +159 -0
- package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
- package/dist/app/mixins/selection-bar-sync.js +151 -0
- package/dist/app/mixins/split-view.d.ts +66 -0
- package/dist/app/mixins/split-view.js +319 -0
- package/dist/app/mixins/status-strip-keys.d.ts +17 -0
- package/dist/app/mixins/status-strip-keys.js +79 -0
- package/dist/app/mixins/submit-on-change.d.ts +16 -0
- package/dist/app/mixins/submit-on-change.js +28 -0
- package/dist/app/mixins/table-selection.d.ts +39 -0
- package/dist/app/mixins/table-selection.js +272 -0
- package/dist/app/mixins/toast-queue.d.ts +36 -0
- package/dist/app/mixins/toast-queue.js +77 -0
- package/dist/app/mixins/toast-stack.d.ts +20 -0
- package/dist/app/mixins/toast-stack.js +55 -0
- package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
- package/dist/app/optimistic-toggle.d.ts +48 -0
- package/dist/app/optimistic-toggle.js +38 -0
- package/dist/app/page-header.d.ts +71 -0
- package/dist/app/page-header.js +249 -0
- package/dist/app/range-picker.d.ts +102 -0
- package/dist/app/range-picker.js +118 -0
- package/dist/{components → app}/resizable.js +7 -10
- package/dist/app/save-bar.d.ts +54 -0
- package/dist/app/save-bar.js +64 -0
- package/dist/app/save-status.d.ts +50 -0
- package/dist/app/save-status.js +54 -0
- package/dist/app/selection-bar.d.ts +101 -0
- package/dist/app/selection-bar.js +157 -0
- package/dist/app/settings-layout.d.ts +70 -0
- package/dist/app/settings-layout.js +112 -0
- package/dist/app/settings-section.d.ts +140 -0
- package/dist/app/settings-section.js +182 -0
- package/dist/{components → app}/shortcut-list.js +4 -3
- package/dist/app/skeleton.d.ts +79 -0
- package/dist/app/skeleton.js +185 -0
- package/dist/app/sparkline.d.ts +61 -0
- package/dist/app/sparkline.js +145 -0
- package/dist/app/split-view.d.ts +154 -0
- package/dist/app/split-view.js +272 -0
- package/dist/app/stat-card.d.ts +109 -0
- package/dist/app/stat-card.js +379 -0
- package/dist/app/status-strip.d.ts +70 -0
- package/dist/app/status-strip.js +155 -0
- package/dist/app/styles/action-row.d.ts +41 -0
- package/dist/app/styles/action-row.js +59 -0
- package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
- package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
- package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
- package/dist/app/styles/stat-delta.d.ts +29 -0
- package/dist/app/styles/stat-delta.js +36 -0
- package/dist/app/styles/toast-stack.d.ts +21 -0
- package/dist/app/styles/toast-stack.js +54 -0
- package/dist/app/table.d.ts +327 -0
- package/dist/app/table.js +839 -0
- package/dist/{components → app}/toast.d.ts +105 -5
- package/dist/{components → app}/toast.js +101 -35
- package/dist/app/toasts.d.ts +49 -0
- package/dist/app/toasts.js +103 -0
- package/dist/{components → app}/toolbar.js +3 -3
- package/dist/{components → app}/tree.d.ts +1 -1
- package/dist/{components → app}/tree.js +10 -14
- package/dist/app/utils/app-shell-cookie.d.ts +21 -0
- package/dist/app/utils/app-shell-cookie.js +33 -0
- package/dist/{utils → app/utils}/chart-marker-indices.d.ts +9 -5
- package/dist/{utils → app/utils}/chart-marker-indices.js +9 -8
- package/dist/{utils → app/utils}/chart-path.d.ts +15 -11
- package/dist/{utils → app/utils}/chart-path.js +48 -20
- package/dist/{utils → app/utils}/chart-scale.js +1 -1
- package/dist/app/utils/edited-time.d.ts +19 -0
- package/dist/app/utils/edited-time.js +35 -0
- package/dist/app/utils/key-target.d.ts +23 -0
- package/dist/app/utils/key-target.js +48 -0
- package/dist/app/utils/search-params.d.ts +69 -0
- package/dist/app/utils/search-params.js +132 -0
- package/dist/app/utils/shortcut-groups.d.ts +21 -0
- package/dist/app/utils/shortcut-groups.js +53 -0
- package/dist/app/utils/split-view-layout.d.ts +48 -0
- package/dist/app/utils/split-view-layout.js +71 -0
- package/dist/app/view-options.d.ts +99 -0
- package/dist/app/view-options.js +182 -0
- package/dist/behaviors/index.d.ts +0 -5
- package/dist/behaviors/index.js +0 -5
- package/dist/{components → chat}/attachment.d.ts +1 -1
- package/dist/{components → chat}/attachment.js +17 -23
- package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
- package/dist/{components → chat}/bubble.js +14 -14
- package/dist/chat/index.d.ts +16 -0
- package/dist/chat/index.js +16 -0
- package/dist/{components → chat}/marker.js +6 -8
- package/dist/{components → chat}/message-scroller.d.ts +1 -1
- package/dist/{components → chat}/message-scroller.js +12 -18
- package/dist/{components → chat}/message.js +10 -12
- package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
- package/dist/{components → color}/color-area.js +7 -10
- package/dist/{components → color}/color-field.js +7 -6
- package/dist/{components → color}/color-picker.d.ts +1 -1
- package/dist/{components → color}/color-picker.js +9 -12
- package/dist/{components → color}/color-slider.js +10 -13
- package/dist/{components → color}/color-swatch-picker.js +4 -5
- package/dist/{components → color}/color-swatch.js +3 -4
- package/dist/{components → color}/color-wheel.js +5 -6
- package/dist/color/index.d.ts +21 -0
- package/dist/color/index.js +21 -0
- package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
- package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
- package/dist/{mixins → color/mixins}/color-preview.js +1 -1
- package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
- package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +19 -15
- package/dist/components/alert-dialog.js +5 -4
- package/dist/components/alert.js +10 -20
- package/dist/components/aspect-ratio.js +3 -4
- package/dist/components/avatar.d.ts +6 -6
- package/dist/components/avatar.js +56 -8
- package/dist/components/badge.js +11 -9
- package/dist/components/banner.d.ts +61 -0
- package/dist/components/banner.js +101 -0
- package/dist/components/breadcrumbs.js +7 -9
- package/dist/components/button.d.ts +8 -6
- package/dist/components/button.js +22 -14
- package/dist/components/calendar.js +13 -24
- package/dist/components/card.js +9 -11
- package/dist/components/carousel.d.ts +1 -1
- package/dist/components/carousel.js +12 -20
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.js +10 -14
- package/dist/components/confirm.d.ts +54 -5
- package/dist/components/confirm.js +44 -5
- package/dist/components/cta-group.d.ts +30 -14
- package/dist/components/cta-group.js +29 -10
- package/dist/components/date-field.js +2 -1
- package/dist/components/date-picker.js +4 -5
- package/dist/components/date-range-picker.js +3 -2
- package/dist/components/description.js +2 -1
- package/dist/components/dialog-dismiss.d.ts +18 -0
- package/dist/components/dialog-dismiss.js +15 -0
- package/dist/components/dialog.js +11 -15
- package/dist/components/disclosure.js +10 -14
- package/dist/components/drawer.js +3 -4
- package/dist/components/field-error.js +3 -3
- package/dist/components/form.js +2 -1
- package/dist/components/group.d.ts +14 -0
- package/dist/components/group.js +68 -13
- package/dist/components/header.js +3 -3
- package/dist/components/heading-scope.js +2 -1
- package/dist/components/heading.d.ts +4 -4
- package/dist/components/heading.js +7 -7
- package/dist/components/highlight.js +17 -12
- package/dist/components/hover-card.js +6 -8
- package/dist/components/image-placeholder.js +13 -19
- package/dist/components/index.d.ts +11 -38
- package/dist/components/index.js +11 -38
- package/dist/components/input.js +12 -7
- package/dist/components/item.js +10 -19
- package/dist/components/keyboard.js +3 -3
- package/dist/components/label.js +2 -1
- package/dist/components/link-button.d.ts +7 -5
- package/dist/components/link-button.js +24 -13
- package/dist/components/link.js +3 -4
- package/dist/components/listbox.js +6 -11
- package/dist/components/menu.js +5 -6
- package/dist/components/meter.js +5 -6
- package/dist/components/modal.js +9 -11
- package/dist/components/nav-link.d.ts +1 -1
- package/dist/components/nav-link.js +3 -4
- package/dist/components/navigation-menu.js +17 -23
- package/dist/components/number-field.js +8 -10
- package/dist/components/otp-field.js +2 -1
- package/dist/components/overlay-arrow.js +3 -4
- package/dist/components/pagination.js +8 -10
- package/dist/components/popover.js +3 -4
- package/dist/components/progress-bar.js +5 -5
- package/dist/components/property-list.d.ts +76 -0
- package/dist/components/property-list.js +175 -0
- package/dist/components/radio-group.js +5 -7
- package/dist/components/range-calendar.js +3 -3
- package/dist/components/relative-time.d.ts +72 -0
- package/dist/components/relative-time.js +45 -0
- package/dist/components/scroll-area.js +4 -5
- package/dist/components/search-field.js +8 -11
- package/dist/components/section.js +2 -1
- package/dist/components/select.js +10 -22
- package/dist/components/selection-indicator.js +3 -3
- package/dist/components/sentinel-row.js +3 -3
- package/dist/components/separator.js +3 -3
- package/dist/components/shared-element.js +2 -1
- package/dist/components/sheet.js +6 -7
- package/dist/components/sidebar.js +48 -76
- package/dist/components/slider.js +8 -10
- package/dist/components/spinner.js +3 -3
- package/dist/components/status-dot.d.ts +62 -0
- package/dist/components/status-dot.js +99 -0
- package/dist/components/switch.js +3 -3
- package/dist/components/tabs.js +9 -12
- package/dist/components/tag-group.js +7 -9
- package/dist/components/text-field.d.ts +17 -2
- package/dist/components/text-field.js +14 -4
- package/dist/components/text.js +2 -1
- package/dist/components/textarea.js +3 -4
- package/dist/components/time-field.js +2 -1
- package/dist/components/timeline.d.ts +67 -0
- package/dist/components/timeline.js +159 -0
- package/dist/components/toggle-button.js +5 -7
- package/dist/components/tooltip.js +3 -3
- package/dist/components/typeset.d.ts +2 -1
- package/dist/components/typeset.js +131 -123
- package/dist/components/youtube-embed.js +2 -1
- package/dist/docs/anchor-heading.d.ts +41 -0
- package/dist/docs/anchor-heading.js +62 -0
- package/dist/docs/callout.d.ts +46 -0
- package/dist/docs/callout.js +61 -0
- package/dist/docs/code-block.d.ts +74 -0
- package/dist/docs/code-block.js +322 -0
- package/dist/docs/code-tabs-sync.d.ts +26 -0
- package/dist/docs/code-tabs-sync.js +12 -0
- package/dist/docs/code-tabs.d.ts +53 -0
- package/dist/docs/code-tabs.js +102 -0
- package/dist/docs/copy-button.d.ts +31 -0
- package/dist/docs/copy-button.js +49 -0
- package/dist/docs/docs-feedback.d.ts +67 -0
- package/dist/docs/docs-feedback.js +74 -0
- package/dist/docs/docs-footer.d.ts +40 -0
- package/dist/docs/docs-footer.js +45 -0
- package/dist/docs/docs-hub.d.ts +93 -0
- package/dist/docs/docs-hub.js +142 -0
- package/dist/docs/docs-layout.d.ts +90 -0
- package/dist/docs/docs-layout.js +166 -0
- package/dist/docs/docs-nav-tools.d.ts +25 -0
- package/dist/docs/docs-nav-tools.js +14 -0
- package/dist/docs/docs-nav.d.ts +57 -0
- package/dist/docs/docs-nav.js +76 -0
- package/dist/docs/docs-not-found.d.ts +68 -0
- package/dist/docs/docs-not-found.js +100 -0
- package/dist/docs/docs-page-header.d.ts +55 -0
- package/dist/docs/docs-page-header.js +54 -0
- package/dist/docs/docs-pager.d.ts +50 -0
- package/dist/docs/docs-pager.js +75 -0
- package/dist/docs/file-tree.d.ts +57 -0
- package/dist/docs/file-tree.js +142 -0
- package/dist/docs/index.d.ts +38 -0
- package/dist/docs/index.js +38 -0
- package/dist/docs/install-command.d.ts +54 -0
- package/dist/docs/install-command.js +33 -0
- package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
- package/dist/docs/mixins/code-tabs-sync.js +137 -0
- package/dist/docs/mixins/copy-feedback.d.ts +25 -0
- package/dist/docs/mixins/copy-feedback.js +49 -0
- package/dist/docs/mixins/copy-from-url.d.ts +27 -0
- package/dist/docs/mixins/copy-from-url.js +95 -0
- package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
- package/dist/docs/mixins/docs-nav-tools.js +124 -0
- package/dist/docs/mixins/toc-spy.d.ts +30 -0
- package/dist/docs/mixins/toc-spy.js +165 -0
- package/dist/docs/next-steps.d.ts +45 -0
- package/dist/docs/next-steps.js +80 -0
- package/dist/docs/page-actions.d.ts +77 -0
- package/dist/docs/page-actions.js +78 -0
- package/dist/docs/plan-notice.d.ts +28 -0
- package/dist/docs/plan-notice.js +33 -0
- package/dist/docs/props-table.d.ts +64 -0
- package/dist/docs/props-table.js +147 -0
- package/dist/docs/steps.d.ts +51 -0
- package/dist/docs/steps.js +112 -0
- package/dist/docs/table-of-contents.d.ts +49 -0
- package/dist/docs/table-of-contents.js +139 -0
- package/dist/docs/ui-label.d.ts +51 -0
- package/dist/docs/ui-label.js +64 -0
- package/dist/docs/utils/docs-tree.d.ts +81 -0
- package/dist/docs/utils/docs-tree.js +57 -0
- package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
- package/dist/docs/utils/reveal-in-scroller.js +43 -0
- package/dist/landing/accent-text.d.ts +47 -0
- package/dist/landing/accent-text.js +107 -0
- package/dist/landing/animations/entrance.d.ts +40 -0
- package/dist/landing/animations/entrance.js +52 -0
- package/dist/landing/announcement-chip.d.ts +45 -0
- package/dist/landing/announcement-chip.js +36 -0
- package/dist/landing/author-band.d.ts +78 -0
- package/dist/landing/author-band.js +190 -0
- package/dist/landing/bento.d.ts +99 -0
- package/dist/landing/bento.js +138 -0
- package/dist/landing/changelog-strip.d.ts +74 -0
- package/dist/landing/changelog-strip.js +201 -0
- package/dist/{patterns → landing}/check-row.js +5 -7
- package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
- package/dist/{patterns → landing}/closing-cta.js +8 -8
- package/dist/landing/code-stage.d.ts +93 -0
- package/dist/landing/code-stage.js +434 -0
- package/dist/landing/crosshair.d.ts +44 -0
- package/dist/landing/crosshair.js +48 -0
- package/dist/landing/curriculum.d.ts +79 -0
- package/dist/landing/curriculum.js +194 -0
- package/dist/landing/drawn-chart.d.ts +74 -0
- package/dist/landing/drawn-chart.js +377 -0
- package/dist/landing/event-ticker.d.ts +71 -0
- package/dist/landing/event-ticker.js +331 -0
- package/dist/landing/fan-out-diagram.d.ts +70 -0
- package/dist/landing/fan-out-diagram.js +481 -0
- package/dist/{patterns → landing}/faq-band.d.ts +5 -5
- package/dist/{patterns → landing}/faq-band.js +13 -14
- package/dist/landing/feature-band.d.ts +108 -0
- package/dist/landing/feature-band.js +67 -0
- package/dist/landing/feature.d.ts +148 -0
- package/dist/landing/feature.js +219 -0
- package/dist/landing/flow-diagram.d.ts +62 -0
- package/dist/landing/flow-diagram.js +240 -0
- package/dist/{patterns → landing}/icon-well.d.ts +17 -7
- package/dist/landing/icon-well.js +31 -0
- package/dist/landing/index.d.ts +52 -0
- package/dist/landing/index.js +52 -0
- package/dist/{patterns → landing}/install-tabs.js +4 -5
- package/dist/landing/landing-header.d.ts +103 -0
- package/dist/landing/landing-header.js +110 -0
- package/dist/landing/landing-hero.d.ts +119 -0
- package/dist/landing/landing-hero.js +172 -0
- package/dist/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
- package/dist/landing/landing-section.js +183 -0
- package/dist/landing/logo-cloud.d.ts +56 -0
- package/dist/landing/logo-cloud.js +160 -0
- package/dist/landing/logo-sentence.d.ts +38 -0
- package/dist/landing/logo-sentence.js +51 -0
- package/dist/landing/marquee.d.ts +44 -0
- package/dist/landing/marquee.js +97 -0
- package/dist/landing/motion-loop.d.ts +43 -0
- package/dist/landing/motion-loop.js +42 -0
- package/dist/landing/pricing-band.d.ts +94 -0
- package/dist/landing/pricing-band.js +151 -0
- package/dist/landing/product-frame.d.ts +108 -0
- package/dist/landing/product-frame.js +202 -0
- package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
- package/dist/{patterns → landing}/proof-strip.js +3 -3
- package/dist/landing/rails.d.ts +45 -0
- package/dist/landing/rails.js +69 -0
- package/dist/landing/rotating-text.d.ts +44 -0
- package/dist/landing/rotating-text.js +67 -0
- package/dist/landing/segmented-stage.d.ts +75 -0
- package/dist/landing/segmented-stage.js +141 -0
- package/dist/landing/sequence-diagram.d.ts +65 -0
- package/dist/landing/sequence-diagram.js +348 -0
- package/dist/landing/site-footer.d.ts +100 -0
- package/dist/landing/site-footer.js +274 -0
- package/dist/landing/site-header.d.ts +126 -0
- package/dist/landing/site-header.js +595 -0
- package/dist/{components → landing}/split.d.ts +12 -5
- package/dist/{components → landing}/split.js +26 -18
- package/dist/landing/sponsor-wall.d.ts +81 -0
- package/dist/landing/sponsor-wall.js +241 -0
- package/dist/{components → landing}/stat-strip.d.ts +31 -7
- package/dist/landing/stat-strip.js +105 -0
- package/dist/landing/step-list.d.ts +73 -0
- package/dist/landing/step-list.js +182 -0
- package/dist/landing/styles/card-grid.d.ts +115 -0
- package/dist/landing/styles/card-grid.js +295 -0
- package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
- package/dist/landing/tabbed-stage.js +233 -0
- package/dist/landing/testimonial-band.d.ts +110 -0
- package/dist/landing/testimonial-band.js +164 -0
- package/dist/landing/typed-terminal.d.ts +62 -0
- package/dist/landing/typed-terminal.js +233 -0
- package/dist/landing/utils/pause-toggle.d.ts +37 -0
- package/dist/landing/utils/pause-toggle.js +71 -0
- package/dist/mixins/confirm-phrase.d.ts +19 -0
- package/dist/mixins/confirm-phrase.js +56 -0
- package/dist/mixins/copy-to-clipboard.d.ts +6 -0
- package/dist/mixins/copy-to-clipboard.js +17 -1
- package/dist/mixins/dialog-dismiss.d.ts +21 -0
- package/dist/mixins/dialog-dismiss.js +62 -0
- package/dist/mixins/index.d.ts +4 -15
- package/dist/mixins/index.js +4 -15
- package/dist/mixins/viewer-time.d.ts +20 -0
- package/dist/mixins/viewer-time.js +40 -0
- package/dist/styles/index.d.ts +3 -5
- package/dist/styles/index.js +3 -5
- package/dist/styles/landing.d.ts +200 -0
- package/dist/styles/landing.js +516 -0
- package/dist/styles/segmented-control.d.ts +49 -0
- package/dist/styles/segmented-control.js +71 -0
- package/dist/styles/surface-control.d.ts +18 -0
- package/dist/styles/surface-control.js +31 -0
- package/dist/test/table.d.ts +65 -0
- package/dist/test/table.js +108 -0
- package/dist/utils/eyebrow.d.ts +39 -0
- package/dist/utils/eyebrow.js +21 -0
- package/dist/utils/index.d.ts +2 -5
- package/dist/utils/index.js +2 -5
- package/dist/utils/relative-time.d.ts +44 -0
- package/dist/utils/relative-time.js +69 -0
- package/package.json +16 -6
- package/src/theme.css +87 -22
- package/dist/components/empty.d.ts +0 -91
- package/dist/components/empty.js +0 -151
- package/dist/components/feature.d.ts +0 -102
- package/dist/components/feature.js +0 -150
- package/dist/components/logo-cloud.d.ts +0 -42
- package/dist/components/logo-cloud.js +0 -41
- package/dist/components/marketing-header.d.ts +0 -71
- package/dist/components/marketing-header.js +0 -81
- package/dist/components/marketing-section.js +0 -117
- package/dist/components/skeleton.d.ts +0 -36
- package/dist/components/skeleton.js +0 -38
- package/dist/components/stat-strip.js +0 -65
- package/dist/components/table.d.ts +0 -152
- package/dist/components/table.js +0 -238
- package/dist/patterns/accent-text.d.ts +0 -30
- package/dist/patterns/accent-text.js +0 -17
- package/dist/patterns/announcement-chip.d.ts +0 -41
- package/dist/patterns/announcement-chip.js +0 -49
- package/dist/patterns/bento.d.ts +0 -68
- package/dist/patterns/bento.js +0 -94
- package/dist/patterns/code-stage.d.ts +0 -63
- package/dist/patterns/code-stage.js +0 -82
- package/dist/patterns/feature-band.d.ts +0 -85
- package/dist/patterns/feature-band.js +0 -50
- package/dist/patterns/icon-well.js +0 -38
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.js +0 -23
- package/dist/patterns/landing-hero.d.ts +0 -93
- package/dist/patterns/landing-hero.js +0 -126
- package/dist/patterns/product-frame.d.ts +0 -60
- package/dist/patterns/product-frame.js +0 -70
- package/dist/patterns/step-list.d.ts +0 -47
- package/dist/patterns/step-list.js +0 -85
- package/dist/patterns/tabbed-stage.js +0 -77
- package/dist/styles/marketing.d.ts +0 -120
- package/dist/styles/marketing.js +0 -225
- package/dist/utils/semantic-color-panel.d.ts +0 -35
- package/dist/utils/semantic-color-panel.js +0 -28
- /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
- /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
- /package/dist/{components → app}/drop-indicator.d.ts +0 -0
- /package/dist/{components → app}/file-trigger.d.ts +0 -0
- /package/dist/{components → app}/menubar.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
- /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
- /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
- /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
- /package/dist/{components → app}/resizable.d.ts +0 -0
- /package/dist/{components → app}/shortcut-list.d.ts +0 -0
- /package/dist/{styles → app/styles}/chart-palette.js +0 -0
- /package/dist/{styles → app/styles}/graphic-host.js +0 -0
- /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
- /package/dist/{components → app}/toolbar.d.ts +0 -0
- /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
- /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
- /package/dist/{components → chat}/bubble.d.ts +0 -0
- /package/dist/{components → chat}/marker.d.ts +0 -0
- /package/dist/{components → chat}/message.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
- /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
- /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
- /package/dist/{components → color}/color-area.d.ts +0 -0
- /package/dist/{components → color}/color-field.d.ts +0 -0
- /package/dist/{components → color}/color-slider.d.ts +0 -0
- /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
- /package/dist/{components → color}/color-swatch.d.ts +0 -0
- /package/dist/{components → color}/color-wheel.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
- /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
- /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
- /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
- /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
- /package/dist/{patterns → landing}/check-row.d.ts +0 -0
- /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
package/dist/components/table.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
|
|
2
|
-
import { ArrowDownIcon, ArrowUpDownIcon, ArrowUpIcon } from "@sdxc/icons";
|
|
3
|
-
import { bg, borderEdge, center, container, cursor, fg, flex, fontSize, gap, hover, is, items, justify, opacity, outline, overflow, p, pb, pi, raw, relative, shrink, tabularNums, textAlign, textDecoration, userSelect, virtualize, weight, when, } from "@sdxc/u";
|
|
4
|
-
import { attrs } from "remix/component";
|
|
5
|
-
import { interactiveTransition } from "../styles/interactive-transition.js";
|
|
6
|
-
import { warnIfNoAccessibleLabel } from "../utils/warn-if-no-accessible-name.js";
|
|
7
|
-
/**
|
|
8
|
-
* Named container {@link Table.Container} declares on its own host, so a
|
|
9
|
-
* consumer's own descendant styles can query the wrapper's width instead of
|
|
10
|
-
* the page's.
|
|
11
|
-
*/
|
|
12
|
-
const CONTAINER_NAME = "ui-table";
|
|
13
|
-
/** Text alignment {@link Table.Column} falls back to when `align` is omitted. */
|
|
14
|
-
const DEFAULT_ALIGN = "start";
|
|
15
|
-
/**
|
|
16
|
-
* Text alignment a `numeric` {@link Table.Column} falls back to when `align` is
|
|
17
|
-
* omitted, lining its header up with the end-aligned figures beneath it.
|
|
18
|
-
*/
|
|
19
|
-
const DEFAULT_NUMERIC_ALIGN = "end";
|
|
20
|
-
/**
|
|
21
|
-
* Flex alignment a sortable header's link takes for each column alignment, so the
|
|
22
|
-
* link fills the whole cell and still places its label where `align` puts it.
|
|
23
|
-
*/
|
|
24
|
-
const JUSTIFY_BY_ALIGN = { start: "start", center: "center", end: "end" };
|
|
25
|
-
/**
|
|
26
|
-
* Renders the table's `<table>` host: a full-width, border-collapsed grid
|
|
27
|
-
* with a small base font size, ready to hold {@link Table.Header} and
|
|
28
|
-
* {@link Table.Body}. Dev mode warns when it lacks an accessible name.
|
|
29
|
-
*
|
|
30
|
-
* @param handle Runtime handle carrying the host `<table>`'s props.
|
|
31
|
-
* @returns The render function producing the table's markup.
|
|
32
|
-
* @example
|
|
33
|
-
* <Table aria-label={t("subjects.title")}>
|
|
34
|
-
* <Table.Header>
|
|
35
|
-
* <Table.Row>
|
|
36
|
-
* <Table.Column>{t("subjects.name")}</Table.Column>
|
|
37
|
-
* </Table.Row>
|
|
38
|
-
* </Table.Header>
|
|
39
|
-
* <Table.Body>
|
|
40
|
-
* <Table.Row>
|
|
41
|
-
* <Table.Cell>{subject.name}</Table.Cell>
|
|
42
|
-
* </Table.Row>
|
|
43
|
-
* </Table.Body>
|
|
44
|
-
* </Table>
|
|
45
|
-
*/
|
|
46
|
-
export function Table(handle) {
|
|
47
|
-
return () => {
|
|
48
|
-
let { mix, ...rest } = handle.props;
|
|
49
|
-
warnIfNoAccessibleLabel(handle.props, 'Table: needs an "aria-label" or "aria-labelledby" describing its contents for assistive technology.');
|
|
50
|
-
return (_jsx("table", { ...rest, "data-slot": "table", mix: [is("100%"), raw({ borderCollapse: "collapse" }), fontSize("sm"), mix] }));
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Renders an optional wrapper around {@link Table}: a relatively positioned
|
|
55
|
-
* `<div>` that scrolls its own inline axis when the table grows wider than
|
|
56
|
-
* the available space, and declares the `ui-table` named container.
|
|
57
|
-
*
|
|
58
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
59
|
-
* @returns The render function producing the wrapper's markup.
|
|
60
|
-
* @example
|
|
61
|
-
* <Table.Container>
|
|
62
|
-
* <Table aria-label={t("subjects.title")}>...</Table>
|
|
63
|
-
* </Table.Container>
|
|
64
|
-
*/
|
|
65
|
-
Table.Container = function TableContainer(handle) {
|
|
66
|
-
return () => {
|
|
67
|
-
let { mix, ...rest } = handle.props;
|
|
68
|
-
return (_jsx("div", { ...rest, "data-slot": "container", mix: [relative(), is("100%"), overflow("auto"), container(CONTAINER_NAME), mix] }));
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Renders the table's `<thead>` host: a plain wrapper for the header
|
|
73
|
-
* {@link Table.Row}, separated from {@link Table.Body} by a block-end border.
|
|
74
|
-
*
|
|
75
|
-
* @param handle Runtime handle carrying the host `<thead>`'s props.
|
|
76
|
-
* @returns The render function producing the header section's markup.
|
|
77
|
-
* @example
|
|
78
|
-
* <Table.Header>
|
|
79
|
-
* <Table.Row>
|
|
80
|
-
* <Table.Column>{t("subjects.name")}</Table.Column>
|
|
81
|
-
* </Table.Row>
|
|
82
|
-
* </Table.Header>
|
|
83
|
-
*/
|
|
84
|
-
Table.Header = function TableHeader(handle) {
|
|
85
|
-
return () => {
|
|
86
|
-
let { mix, ...rest } = handle.props;
|
|
87
|
-
return (_jsx("thead", { ...rest, "data-slot": "header", mix: [borderEdge("block-end", { color: "neutral", width: 1 }), mix] }));
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Renders the table's `<tbody>` host: a block-start border rules the space
|
|
92
|
-
* between direct row children, and `content-visibility: auto` lets a long
|
|
93
|
-
* body's off-screen rows skip layout and paint until they scroll into view.
|
|
94
|
-
*
|
|
95
|
-
* @param handle Runtime handle carrying the host `<tbody>`'s props.
|
|
96
|
-
* @returns The render function producing the body section's markup.
|
|
97
|
-
* @example
|
|
98
|
-
* <Table.Body>
|
|
99
|
-
* {subjects.map((subject) => (
|
|
100
|
-
* <Table.Row key={subject.id}>
|
|
101
|
-
* <Table.Cell>{subject.name}</Table.Cell>
|
|
102
|
-
* </Table.Row>
|
|
103
|
-
* ))}
|
|
104
|
-
* </Table.Body>
|
|
105
|
-
*/
|
|
106
|
-
Table.Body = function TableBody(handle) {
|
|
107
|
-
return () => {
|
|
108
|
-
let { mix, ...rest } = handle.props;
|
|
109
|
-
return (_jsx("tbody", { ...rest, "data-slot": "body", mix: [
|
|
110
|
-
virtualize("auto var(--ui-table-body-intrinsic-size, 32rem)"),
|
|
111
|
-
when("& > :not([hidden]) ~ :not([hidden])", borderEdge("block-start", { color: "neutral", width: 1 })),
|
|
112
|
-
mix,
|
|
113
|
-
] }));
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Renders a column header inside a native `<th scope="col">`, aligned by `data-align`.
|
|
118
|
-
* Setting `href` makes the header a cell-filling sort link with `aria-sort` and a direction
|
|
119
|
-
* indicator held square, so a header narrow enough to squeeze the link keeps both arrows legible.
|
|
120
|
-
*
|
|
121
|
-
* @param handle Runtime handle carrying the host `<th>`'s props.
|
|
122
|
-
* @returns The render function producing the column header's markup.
|
|
123
|
-
* @example
|
|
124
|
-
* <Table.Column>{t("subjects.email")}</Table.Column>
|
|
125
|
-
* @example
|
|
126
|
-
* <Table.Column numeric>{t("invoices.amount")}</Table.Column>
|
|
127
|
-
* @example
|
|
128
|
-
* <Table.Column href={sortUrl("name", nextDirection)} sortDirection={activeSort === "name" ? currentDirection : undefined}>
|
|
129
|
-
* {t("subjects.name")}
|
|
130
|
-
* </Table.Column>
|
|
131
|
-
*/
|
|
132
|
-
Table.Column = function TableColumn(handle) {
|
|
133
|
-
return () => {
|
|
134
|
-
let { align, numeric, href, sortDirection, parts, children, mix, ...rest } = handle.props;
|
|
135
|
-
let resolvedAlign = align ?? (numeric ? DEFAULT_NUMERIC_ALIGN : DEFAULT_ALIGN);
|
|
136
|
-
return (_jsx("th", { ...rest, "data-align": resolvedAlign, "data-numeric": numeric ? "" : undefined, "aria-sort": href ? (sortDirection ?? "none") : undefined, "data-slot": "column", mix: [
|
|
137
|
-
attrs({ scope: "col" }),
|
|
138
|
-
href ? undefined : [pi("1rem"), pb("0.75rem")],
|
|
139
|
-
textAlign("start"),
|
|
140
|
-
weight(500),
|
|
141
|
-
fg("neutral"),
|
|
142
|
-
when('&[data-align="center"]', textAlign("center")),
|
|
143
|
-
when('&[data-align="end"]', textAlign("end")),
|
|
144
|
-
when("&[aria-sort]", when("&:hover", bg("neutral.tint"))),
|
|
145
|
-
when("&[aria-sort]", [cursor("pointer"), userSelect()]),
|
|
146
|
-
mix,
|
|
147
|
-
], children: href ? (_jsxs("a", { href: href, mix: [
|
|
148
|
-
when("&:focus-visible", outline({ color: "brand.ring", offset: -2 })),
|
|
149
|
-
flex(),
|
|
150
|
-
justify(JUSTIFY_BY_ALIGN[resolvedAlign]),
|
|
151
|
-
pi("1rem"),
|
|
152
|
-
pb("0.75rem"),
|
|
153
|
-
items("center"),
|
|
154
|
-
gap("0.25rem"),
|
|
155
|
-
fg("inherit"),
|
|
156
|
-
textDecoration("none"),
|
|
157
|
-
hover(textDecoration("underline")),
|
|
158
|
-
parts?.link,
|
|
159
|
-
], children: [children, sortDirection === "ascending" && _jsx(ArrowUpIcon, { size: 14, mix: [shrink()] }), sortDirection === "descending" && _jsx(ArrowDownIcon, { size: 14, mix: [shrink()] }), !sortDirection && _jsx(ArrowUpDownIcon, { size: 14, mix: [shrink(), opacity(40)] })] })) : (children) }));
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* Renders a native `<tr>` host: transitions its background smoothly, tints
|
|
164
|
-
* it on hover, and tints it more strongly when it carries
|
|
165
|
-
* `aria-selected="true"`, set directly since selection state is native.
|
|
166
|
-
*
|
|
167
|
-
* @param handle Runtime handle carrying the host `<tr>`'s props.
|
|
168
|
-
* @returns The render function producing the row's markup.
|
|
169
|
-
* @example
|
|
170
|
-
* <Table.Row>
|
|
171
|
-
* <Table.Cell>{subject.name}</Table.Cell>
|
|
172
|
-
* </Table.Row>
|
|
173
|
-
* @example
|
|
174
|
-
* <Table.Row aria-selected="true">
|
|
175
|
-
* <Table.Cell>{subject.name}</Table.Cell>
|
|
176
|
-
* </Table.Row>
|
|
177
|
-
*/
|
|
178
|
-
Table.Row = function TableRow(handle) {
|
|
179
|
-
return () => {
|
|
180
|
-
let { mix, ...rest } = handle.props;
|
|
181
|
-
return (_jsx("tr", { ...rest, "data-slot": "row", mix: [
|
|
182
|
-
interactiveTransition(),
|
|
183
|
-
hover(bg("neutral.tint")),
|
|
184
|
-
when('&[aria-selected="true"]', bg("brand.tint")),
|
|
185
|
-
mix,
|
|
186
|
-
] }));
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Renders a native `<td>` host, padded on every side and colored as the
|
|
191
|
-
* table's emphasized foreground text; a `numeric` cell end-aligns tabular figures.
|
|
192
|
-
*
|
|
193
|
-
* @param handle Runtime handle carrying the host `<td>`'s props.
|
|
194
|
-
* @returns The render function producing the cell's markup.
|
|
195
|
-
* @example
|
|
196
|
-
* <Table.Cell>{subject.name}</Table.Cell>
|
|
197
|
-
* @example
|
|
198
|
-
* <Table.Cell numeric>{formatCurrency(invoice.amount)}</Table.Cell>
|
|
199
|
-
*/
|
|
200
|
-
Table.Cell = function TableCell(handle) {
|
|
201
|
-
return () => {
|
|
202
|
-
let { numeric, mix, ...rest } = handle.props;
|
|
203
|
-
return (_jsx("td", { ...rest, "data-numeric": numeric ? "" : undefined, "data-slot": "cell", mix: [
|
|
204
|
-
pi("1rem"),
|
|
205
|
-
pb("0.75rem"),
|
|
206
|
-
fg("neutral.emphasis"),
|
|
207
|
-
when("&[data-numeric]", [tabularNums(), textAlign("end")]),
|
|
208
|
-
mix,
|
|
209
|
-
] }));
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Renders a trailing row carrying a single link that spans every column,
|
|
214
|
-
* standing in for an auto-loading "next page" trigger since fetching more
|
|
215
|
-
* rows without a full navigation requires script a consumer attaches.
|
|
216
|
-
*
|
|
217
|
-
* @param handle Runtime handle carrying the host `<tr>`'s props.
|
|
218
|
-
* @returns The render function producing the row's markup.
|
|
219
|
-
* @example
|
|
220
|
-
* <Table.LoadMore href={nextPageUrl} colSpan={4}>
|
|
221
|
-
* {t("subjects.loadMore")}
|
|
222
|
-
* </Table.LoadMore>
|
|
223
|
-
*/
|
|
224
|
-
Table.LoadMore = function TableLoadMore(handle) {
|
|
225
|
-
return () => {
|
|
226
|
-
let { href, colSpan, parts, children, mix, ...rest } = handle.props;
|
|
227
|
-
return (_jsx("tr", { ...rest, "data-slot": "load-more", mix: [mix], children: _jsx("td", { colSpan: colSpan, mix: [p("0"), parts?.cell], children: _jsx("a", { href: href, mix: [
|
|
228
|
-
when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
|
|
229
|
-
center(),
|
|
230
|
-
pb("1rem"),
|
|
231
|
-
fg("neutral.muted"),
|
|
232
|
-
hover(fg("neutral")),
|
|
233
|
-
fontSize("sm"),
|
|
234
|
-
textDecoration("none"),
|
|
235
|
-
parts?.link,
|
|
236
|
-
], children: children }) }) }));
|
|
237
|
-
};
|
|
238
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single emphasized phrase inside a marketing headline — brand color on the
|
|
3
|
-
* span so the surrounding display heading stays one weight and size.
|
|
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 AccentText}.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace AccentText {
|
|
13
|
-
/**
|
|
14
|
-
* Props accepted by {@link AccentText}.
|
|
15
|
-
*/
|
|
16
|
-
interface Props extends TagProps<"span"> {
|
|
17
|
-
/** The emphasized phrase. */
|
|
18
|
-
children: RemixNode;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Colors a phrase with the brand foreground so a display heading can stress
|
|
23
|
-
* one word without changing weight or inventing a gradient recipe.
|
|
24
|
-
*
|
|
25
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
26
|
-
* @returns The render function producing the accent span.
|
|
27
|
-
* @example
|
|
28
|
-
* <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
|
|
29
|
-
*/
|
|
30
|
-
export declare function AccentText(handle: Handle<AccentText.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { fg } from "@sdxc/u/color";
|
|
3
|
-
/**
|
|
4
|
-
* Colors a phrase with the brand foreground so a display heading can stress
|
|
5
|
-
* one word without changing weight or inventing a gradient recipe.
|
|
6
|
-
*
|
|
7
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
8
|
-
* @returns The render function producing the accent span.
|
|
9
|
-
* @example
|
|
10
|
-
* <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
|
|
11
|
-
*/
|
|
12
|
-
export function AccentText(handle) {
|
|
13
|
-
return () => {
|
|
14
|
-
let { mix, ...rest } = handle.props;
|
|
15
|
-
return _jsx("span", { ...rest, "data-slot": "accent-text", mix: [fg("brand"), mix] });
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A short announcement with a stronger rim than the default eyebrow pill —
|
|
3
|
-
* reserved for “new” / forward callouts that should read louder than a band
|
|
4
|
-
* eyebrow.
|
|
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 AnnouncementChip}.
|
|
12
|
-
*/
|
|
13
|
-
export declare namespace AnnouncementChip {
|
|
14
|
-
/**
|
|
15
|
-
* How the chip draws its edge: a solid brand rim, or a soft dual-tone
|
|
16
|
-
* border for a louder announcement.
|
|
17
|
-
*/
|
|
18
|
-
type Variant = "rim" | "special";
|
|
19
|
-
/**
|
|
20
|
-
* Props accepted by {@link AnnouncementChip}.
|
|
21
|
-
*/
|
|
22
|
-
interface Props extends TagProps<"span"> {
|
|
23
|
-
/** Rim treatment. Defaults to {@link DEFAULT_VARIANT}. */
|
|
24
|
-
variant?: Variant;
|
|
25
|
-
/** Announcement label — always supplied by the page. */
|
|
26
|
-
children: RemixNode;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Renders a compact announcement label. Prefer {@link MarketingHeader}'s
|
|
31
|
-
* eyebrow for ordinary section labels; reach for this when the callout itself
|
|
32
|
-
* is the news.
|
|
33
|
-
*
|
|
34
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
35
|
-
* @returns The render function producing the chip's markup.
|
|
36
|
-
* @example
|
|
37
|
-
* <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
|
|
38
|
-
* @example
|
|
39
|
-
* <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
|
|
40
|
-
*/
|
|
41
|
-
export declare function AnnouncementChip(handle: Handle<AnnouncementChip.Props>): () => import("remix/component").RemixElement;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { bg, border, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
5
|
-
import { inlineFlex, items } from "@sdxc/u/layout";
|
|
6
|
-
import { pb, pi } from "@sdxc/u/size";
|
|
7
|
-
import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
|
|
8
|
-
/** Rim treatment {@link AnnouncementChip} applies when `variant` is omitted. */
|
|
9
|
-
const DEFAULT_VARIANT = "rim";
|
|
10
|
-
/**
|
|
11
|
-
* Renders a compact announcement label. Prefer {@link MarketingHeader}'s
|
|
12
|
-
* eyebrow for ordinary section labels; reach for this when the callout itself
|
|
13
|
-
* is the news.
|
|
14
|
-
*
|
|
15
|
-
* @param handle Runtime handle carrying the host `<span>`'s props.
|
|
16
|
-
* @returns The render function producing the chip's markup.
|
|
17
|
-
* @example
|
|
18
|
-
* <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
|
|
19
|
-
* @example
|
|
20
|
-
* <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
|
|
21
|
-
*/
|
|
22
|
-
export function AnnouncementChip(handle) {
|
|
23
|
-
return () => {
|
|
24
|
-
let { mix, variant, ...rest } = handle.props;
|
|
25
|
-
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
26
|
-
return (_jsx("span", { ...rest, "data-slot": "announcement-chip", "data-variant": resolvedVariant, mix: [
|
|
27
|
-
inlineFlex(),
|
|
28
|
-
items("center"),
|
|
29
|
-
pb(0.5),
|
|
30
|
-
pi(2.5),
|
|
31
|
-
rounded("full"),
|
|
32
|
-
text("xs"),
|
|
33
|
-
weight("semibold"),
|
|
34
|
-
tracking("wider"),
|
|
35
|
-
textTransform("uppercase"),
|
|
36
|
-
bg("brand.tint"),
|
|
37
|
-
fg("brand"),
|
|
38
|
-
resolvedVariant === "special"
|
|
39
|
-
? raw({
|
|
40
|
-
border: "1px solid transparent",
|
|
41
|
-
backgroundImage: "linear-gradient(var(--ui-brand-bg-tint), var(--ui-brand-bg-tint)), linear-gradient(120deg, var(--ui-brand-bg-solid), color-mix(in oklab, var(--ui-brand-bg-solid) 40%, Canvas))",
|
|
42
|
-
backgroundOrigin: "border-box",
|
|
43
|
-
backgroundClip: "padding-box, border-box",
|
|
44
|
-
})
|
|
45
|
-
: border({ color: "brand", width: 1, style: "solid" }),
|
|
46
|
-
mix,
|
|
47
|
-
] }));
|
|
48
|
-
};
|
|
49
|
-
}
|
package/dist/patterns/bento.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Equal columns divided by low-contrast rules — a purpose row or claim strip
|
|
3
|
-
* that needs no card fill. Hairlines come from a 1px gap over the border token.
|
|
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 Bento} and its compound parts.
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace Bento {
|
|
13
|
-
/**
|
|
14
|
-
* How many cells a wide grid puts on one row.
|
|
15
|
-
*/
|
|
16
|
-
type Columns = 2 | 3 | 4;
|
|
17
|
-
/**
|
|
18
|
-
* Props accepted by {@link Bento}.
|
|
19
|
-
*/
|
|
20
|
-
interface Props extends TagProps<"div"> {
|
|
21
|
-
/** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */
|
|
22
|
-
columns?: Columns;
|
|
23
|
-
/** {@link Bento.Cell} children to lay out. */
|
|
24
|
-
children: RemixNode;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Props accepted by {@link Bento.Cell}.
|
|
28
|
-
*/
|
|
29
|
-
interface CellProps extends TagProps<"div"> {
|
|
30
|
-
/** Cell content — typically title + body. */
|
|
31
|
-
children: RemixNode;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Props accepted by {@link Bento.Title}.
|
|
35
|
-
*/
|
|
36
|
-
interface TitleProps extends TagProps<"h1"> {
|
|
37
|
-
/** Title copy for the cell. */
|
|
38
|
-
children: RemixNode;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Props accepted by {@link Bento.Body}.
|
|
42
|
-
*/
|
|
43
|
-
interface BodyProps extends TagProps<"div"> {
|
|
44
|
-
/** Supporting copy for the cell. */
|
|
45
|
-
children: RemixNode;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
50
|
-
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
51
|
-
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
52
|
-
*
|
|
53
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
54
|
-
* @returns The render function producing the bento's markup.
|
|
55
|
-
* @example
|
|
56
|
-
* <Bento columns={3}>
|
|
57
|
-
* <Bento.Cell>
|
|
58
|
-
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
59
|
-
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
60
|
-
* </Bento.Cell>
|
|
61
|
-
* </Bento>
|
|
62
|
-
*/
|
|
63
|
-
export declare function Bento(handle: Handle<Bento.Props>): () => import("remix/component").RemixElement;
|
|
64
|
-
export declare namespace Bento {
|
|
65
|
-
var Cell: (handle: Handle<Bento.CellProps>) => () => import("remix/component").RemixElement;
|
|
66
|
-
var Title: (handle: Handle<Bento.TitleProps>) => () => import("remix/component").RemixElement;
|
|
67
|
-
var Body: (handle: Handle<Bento.BodyProps>) => () => import("remix/component").RemixElement;
|
|
68
|
-
}
|
package/dist/patterns/bento.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "remix/component/jsx-runtime";
|
|
2
|
-
import { border, fg } from "@sdxc/u/color";
|
|
3
|
-
import { rounded } from "@sdxc/u/effects";
|
|
4
|
-
import { raw } from "@sdxc/u/general";
|
|
5
|
-
import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
|
|
6
|
-
import { overflow } from "@sdxc/u/overflow";
|
|
7
|
-
import { at } from "@sdxc/u/responsive";
|
|
8
|
-
import { p } from "@sdxc/u/size";
|
|
9
|
-
import { leading, pretty, text, weight } from "@sdxc/u/typography";
|
|
10
|
-
import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
11
|
-
/** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
|
|
12
|
-
const DEFAULT_COLUMNS = 3;
|
|
13
|
-
/**
|
|
14
|
-
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
15
|
-
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
16
|
-
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
17
|
-
*
|
|
18
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
19
|
-
* @returns The render function producing the bento's markup.
|
|
20
|
-
* @example
|
|
21
|
-
* <Bento columns={3}>
|
|
22
|
-
* <Bento.Cell>
|
|
23
|
-
* <Bento.Title>{t("purpose.one")}</Bento.Title>
|
|
24
|
-
* <Bento.Body>{t("purpose.one.body")}</Bento.Body>
|
|
25
|
-
* </Bento.Cell>
|
|
26
|
-
* </Bento>
|
|
27
|
-
*/
|
|
28
|
-
export function Bento(handle) {
|
|
29
|
-
return () => {
|
|
30
|
-
let { children, columns, mix, ...rest } = handle.props;
|
|
31
|
-
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
32
|
-
return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [container("ui-marketing-bento"), mix], children: _jsx("div", { mix: [
|
|
33
|
-
grid(),
|
|
34
|
-
gap("1px"),
|
|
35
|
-
rounded("xl"),
|
|
36
|
-
overflow("hidden"),
|
|
37
|
-
border({ color: "neutral", width: 1, style: "solid" }),
|
|
38
|
-
raw({
|
|
39
|
-
backgroundColor: "var(--ui-neutral-border)",
|
|
40
|
-
textAlign: "start",
|
|
41
|
-
}),
|
|
42
|
-
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
43
|
-
at("lg", "ui-marketing-bento", [
|
|
44
|
-
gridTemplate({
|
|
45
|
-
columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
|
|
46
|
-
}),
|
|
47
|
-
]),
|
|
48
|
-
], children: children }) }));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* One bento cell. Compose {@link Bento.Title} and {@link Bento.Body} inside it.
|
|
53
|
-
*
|
|
54
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
55
|
-
* @returns The render function producing the cell's markup.
|
|
56
|
-
*/
|
|
57
|
-
Bento.Cell = function BentoCell(handle) {
|
|
58
|
-
return () => {
|
|
59
|
-
let { mix, ...rest } = handle.props;
|
|
60
|
-
return (_jsx("div", { ...rest, "data-slot": "bento-cell", mix: [
|
|
61
|
-
vstack({ gap: 3, align: "stretch" }),
|
|
62
|
-
raw({ backgroundColor: "var(--ui-bg, Canvas)" }),
|
|
63
|
-
p(6, 5),
|
|
64
|
-
at("lg", "ui-marketing-bento", p(8, 8)),
|
|
65
|
-
mix,
|
|
66
|
-
] }));
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Cell title at the ambient heading depth.
|
|
71
|
-
*
|
|
72
|
-
* @param handle Runtime handle carrying the host heading's props.
|
|
73
|
-
* @returns The render function producing the title.
|
|
74
|
-
*/
|
|
75
|
-
Bento.Title = function BentoTitle(handle) {
|
|
76
|
-
return () => {
|
|
77
|
-
let { mix, ...rest } = handle.props;
|
|
78
|
-
let resolved = resolveHeadingLevel(handle);
|
|
79
|
-
let Tag = TAG_BY_LEVEL[resolved];
|
|
80
|
-
return (_jsx(Tag, { ...rest, "data-slot": "bento-title", "data-heading-level": resolved, mix: [text("lg"), weight("medium"), fg("neutral.emphasis"), mix] }));
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Supporting copy under a bento title.
|
|
85
|
-
*
|
|
86
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
87
|
-
* @returns The render function producing the body.
|
|
88
|
-
*/
|
|
89
|
-
Bento.Body = function BentoBody(handle) {
|
|
90
|
-
return () => {
|
|
91
|
-
let { mix, ...rest } = handle.props;
|
|
92
|
-
return (_jsx("div", { ...rest, "data-slot": "bento-body", mix: [text("sm"), leading("relaxed"), pretty(), fg("neutral"), mix] }));
|
|
93
|
-
};
|
|
94
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A titled mono panel for install samples, CLI output, or code snippets on a
|
|
3
|
-
* landing. The optional actions slot holds a copy control the page supplies;
|
|
4
|
-
* the library never invents a clipboard button.
|
|
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 CodeStage}.
|
|
12
|
-
*/
|
|
13
|
-
export declare namespace CodeStage {
|
|
14
|
-
/**
|
|
15
|
-
* Surface treatment: a light code card, or a darker terminal panel.
|
|
16
|
-
*/
|
|
17
|
-
type Variant = "code" | "terminal";
|
|
18
|
-
/**
|
|
19
|
-
* Per-part styling for chrome the stage renders besides its host.
|
|
20
|
-
*/
|
|
21
|
-
interface PartsProps {
|
|
22
|
-
/** Styling for the optional title bar. */
|
|
23
|
-
header?: TagProps<"div">["mix"];
|
|
24
|
-
/** Styling for the mono body that wraps children. */
|
|
25
|
-
body?: TagProps<"pre">["mix"];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Props accepted by {@link CodeStage}.
|
|
29
|
-
*/
|
|
30
|
-
interface Props extends Omit<TagProps<"div">, "title"> {
|
|
31
|
-
/** Surface treatment. Defaults to {@link DEFAULT_VARIANT}. */
|
|
32
|
-
variant?: Variant;
|
|
33
|
-
/** Optional title or path shown in the header. */
|
|
34
|
-
title?: RemixNode;
|
|
35
|
-
/** Optional trailing control in the header — typically a copy button. */
|
|
36
|
-
actions?: RemixNode;
|
|
37
|
-
/** Per-part styling for header and body. */
|
|
38
|
-
parts?: PartsProps;
|
|
39
|
-
/** Mono body content — a command, snippet, or terminal output. */
|
|
40
|
-
children: RemixNode;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Renders an optional titled header and a mono body. Prefer
|
|
45
|
-
* `variant="terminal"` when the sample should read as a shell session.
|
|
46
|
-
*
|
|
47
|
-
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
48
|
-
* @returns The render function producing the stage's markup.
|
|
49
|
-
* @example
|
|
50
|
-
* <CodeStage title="install.sh" actions={copyControl}>
|
|
51
|
-
* {t("install.command")}
|
|
52
|
-
* </CodeStage>
|
|
53
|
-
* @example
|
|
54
|
-
* <CodeStage variant="terminal" title={t("cli.prompt")}>
|
|
55
|
-
* {t("cli.output")}
|
|
56
|
-
* </CodeStage>
|
|
57
|
-
*/
|
|
58
|
-
export declare function CodeStage(handle: Handle<CodeStage.Props>): () => import("remix/component").RemixElement;
|
|
59
|
-
/**
|
|
60
|
-
* Alias for {@link CodeStage} with terminal chrome — same props, same host.
|
|
61
|
-
* Prefer this name when the sample is a shell session rather than a file.
|
|
62
|
-
*/
|
|
63
|
-
export declare const TerminalPanel: typeof CodeStage;
|